Jump to content

BorysSokolov

Members
  • Content count

    78
  • Joined

  • Last visited

Community Reputation

0 Neutral

About BorysSokolov

  • Rank
    Regular Member
  • Birthday 11/01/1978

Profile Information

  • Gender
    Male
  • Location
    Bratislava
  • Interests
    Mostly in-door activities which don't require human contact.
  1. BorysSokolov

    Wordpress Help

    I'm making a wordpress theme from scratch, and I can't for the life of me figure out how to set up the files (yes, I did read the documentation). What I want is, a unique front page, a separate page for posts, and the same page template for all the remaining pages. The files I have so far are, front-page.php, and index.php and they contain the code (respectively): <?php get_header(); ?> front-page.php <?php get_footer(); ?> <?php get_header(); ?> index.php <?php get_footer(); ?> Now, what I'm missing is a page to display the posts. How would I go about that? Thanks.
  2. BorysSokolov

    Beginner Wordpress Problem

    I am in the process of developing a Wordpress theme, and I'm having difficulties with setting up the pages correctly. Namely, the content of index.php displays on each page, instead of the content corresponding to the page. For instance, the page "Inuit", with the content of "test" in the page admin area, displays posts, rather than the content. The same goes for every other page. Here's index.php: <?php get_header(); ?> <?php $query = new WP_Query(array('posts_per_page' => 6, 'post_type'=>'some_posts')); while($query->have_posts()) : $query->the_post(); the_content(); endwhile; ?> <?php get_footer(); ?> And those are the two pages listed in "Pages" in the admin area: Inuit, Test2 To clarify, what I'd like is to have the index page display the content AND the posts, and all other pages to display only their own content. Thanks in advance for any replies.
  3. BorysSokolov

    WordPress and Editing Content

    Thanks. I ended up using a template page for the site.
  4. BorysSokolov

    Looking for a images for my site!

    Backgrounds: http://subtlepatterns.com/ Buttons: http://www.bestcssbuttongenerator.com/ Images: just do a google search; there are plenty of royalty free images/royalty free image websites out there. Alternatively, you could just use a front-end framework like bootstrap or something of the sort.
  5. BorysSokolov

    WordPress and Editing Content

    I am creating (or rather, trying to create) a small informational website using Wordpress, and I've pulling my hair out over how to edit the html on the pages. I understand that Wordpress is dynamic and it loads most of page content from the database, but if that's the case, how am I supposed to add, say php code in the middle of the page; or, a static piece of text next to dynamic posts? So far, the only solution I found was to insert the code between the functions in the index.php file; but that's just that, it only works for the homepage. What if I wanted to add a script or a piece of code to a different page? I hope somebody can clear this up for me. Thanks.
  6. I am in the process of updating a website for a client. Unfortunately, the web editor (Webby 4.1) provided through the hosting company is making the task incredibly difficult. On top of that, the client asked that the website remain unaffected through the updating process. I don't have a lot of time at my disposal and I'm not sure what to do. It seems like the only option is to download each of the files individually, since there is no option to download an entire directory. What do? Is there any way I could transfer the website to my localhost?
  7. BorysSokolov

    Google Description And robots.txt

    I have already registered for Google WMT, and even submitted a site map. I've also submitted it for indexing, like Psycho suggested. I guess, there's nothing I can do at the moment but wait. Hopefully, this will get fixed soon.
  8. The Google search result for my website returns a bad title and description; for the title, Google displays the domain name of my website as opposed to the title I've set in the header. For the description, it displays an error message: "A description for this result is not available because of this site's robots.txt - learn more.". I have had a robots.txt file which denied the entire website, but I have removed it since, and now it's been 3 days and the description has stayed invalid. Any help would be appreciated.
  9. BorysSokolov

    Simple Mod_Rewrite For GET Variable

    I tried what you suggested, but I keep getting a 404 error.
  10. Hello. I'd like to remove a GET variable from my URL like so: website.com/works.php?proj=project-name -> website.com/works/project-name. I also need to strip the .php extension from the website.com/works location, even when the proj variable is not present. Thank you for any responses.
  11. BorysSokolov

    Critique My Portfolio Website

    Hi. I'd like to get some feedback on my portfolio website before I begin to use it. At the moment, it doesn't look too bad in my opinion, but I'm not exactly satisfied with it either. The main issues I have with it are the fonts and the color scheme. Perhaps your honest critique will help me improve it. The website: http://www.lian-design.com/ By the way, don't pay too much attention to content of the text, I will revise it when I'll have the time. Also, the email form doesn't work at the moment. Thanks in advance for any responses.
  12. BorysSokolov

    Optimizing Website For Mobile?

    Never mind, I managed to find what I was looking for. This guy has several tutorials on responsive design that solved my issue: https://www.youtube.com/user/AwfulMedia/videos
  13. BorysSokolov

    Optimizing Website For Mobile?

    Hi. I couldn't find a concrete tutorial on the subject, so I thought I'd ask here: How should I approach optimizing my site for mobile devices? I have never done it before, and it seems like a pretty daunting task since there is so much to consider when optimizing. Looking at my current site layout, there is no way to optimize it for a mobile device screen size without creating a whole separate set of pages. Perhaps I am missing something...How is it usually done?
  14. The website I'm currently working on has a simple image gallery written in HTML and PHP. However, I plan to enhance it with jQuery so that the site wouldn't need to reload whenever the user would browse to the next or previous image. At the moment, the page is structured like this: <?php if(isset($_GET['image'])){ $image = $_GET['image']; $image_arr = $image_class->fetchImage($image); require('pages/display_single_image.html'); //uses $image_arr to get the image path etc. }else{ //list all images } ?> On the page, the user can browse to next and previous images by clicking the corresponding links, retrieved by $image_arr. So I restate my question: with this setup, what would be the standard way of implementing jQuery functionality to allow for browsing of images without refreshing?
  15. BorysSokolov

    How to correctly structure php file

    The general rule is to separate the logic from the markup. As far as file structure goes, there isn't a single, definite way. Commonly, the index would be in the root directory, and the includes, stylesheets, javascript, and any additional files would be divided into separate folders.
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.