Jump to content

BorysSokolov

Members
  • Posts

    78
  • Joined

  • Last visited

Everything posted by BorysSokolov

  1. 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. 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. Thanks. I ended up using a template page for the site.
  4. 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. 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. 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. 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. 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. 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. 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. 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.
  16. Hi. I've been looking around for some work opportunities in web development over the summer. So far, I've managed to score a few gigs with some of the example websites I've created; but since most employers request proper resumes, I'd like to organize a collected portfolio for myself. The problem is, I'm not sure how to go about it. Would it be better to create my own website, where I could showcase my projects, or simply use a site like Carbonmade? What would be more professional, or guarantee me a better impression? Thanks.
  17. Hi. I've been working to build up a simple portfolio for myself, to have something to present in case I'm asked. The problem was, I could never complete any of the projects I began, and I had nothing to show. So I decided to make this very basic website: http://www.bostoncomputerrepaircenter.com/ . The goal was to create a simple example site which would demonstrate that I have a basic grasp of what I'm doing, but at the moment, it pretty much looks like a template. I'm not sure where to lead with this, and I don't know whether I could actually present this to a potential client (I'm doing volunteer work, mostly)? I'd appreciate it if somebody could point out any improvements I could make, or tell me how I could construct the site into something that would persuade a client? Thanks.
  18. I think the layout looks fine; the bigger issue seems to be the background - it looks too sharp in comparison to the actual content. Also, if you're concerned about aesthetics, use a shadow instead of a border around the page?
  19. The website I'm currently working on requires for a tabbed menu one of the pages, much like the one on a user profile page of this site. I originally intended to use Bootstrap to make the tabs, but I also need support for users without Javascript. Is there any way to make the page so that users with JS enabled could browse the tabs without refreshing, while users with JS disabled could still view the content the old fashion way?
  20. I'll be more specific... Here's how my categories table is set up: id parent_id category 1 0 Furniture 2 0 Clothing 3 1 Cupboards 4 2 Men's ...and here's my items table: id item category 1 Venician Cupboard 3 2 Leather-Padded Leggings 4 Based on search results, I need to construct a list of the categories and subcategories of all the items returned. Like this: search: Leather returns: Clothing -Men's ...and then goes on to display the items. The problem is, I'm not sure how to word the query that would poll the list of the categories.
  21. I settled on creating the hierarchy like gizmola proposed, but now I'm having difficulties with fetching rows from the db through a search function on my website. I need to have a panel listing the categories and subcategories of the items resulted in the search, and of course, the items; I've had no trouble fetching the items, but getting the categories is tricky with the structure that I have. I'm able to get the category IDs from the Items table corresponding to the subcategory names within the category table, but I'm not sure about the parent IDs. Any ideas?
  22. I understand that part, but what if I wanted to allow for a single item to belong to multiple categories? Or is that not recommended?
  23. I'm working on a simple ecommerce website where a user can buy items online. Each of the items has to belong to a certain category, and in some cases, even multiple categories. Along with that, I also plan to include subcategories. Much Amazon or eBay does So far, I've made a database table that will store information about all the items available on the website. Originally, I planned to assign items their categories through a single int field that would hold an id value corresponding to a category in the categories table, but I scrapped the idea once I realized I would need subcategories. I eventually figured I could implement subcategories by adding another subcategory row in the categories table, but I'm still not sure how to allow for items to belong to multiple categories. Could anyone help me out?
  24. As a demo, should it be fully functional? In other words, could I build an eCommerce site without the option to actually buy a product?
×
×
  • Create New...

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.