• moustache

    (@moustache)


    Hi,
    (excuse my pitiful english ??
    Homepage of my blog has two columns: menu & content. I’m going to desing a template without the menu to show individual articles in a single 100% width column (like kubrik theme does). But, how & where can I tell to WP that individual articles must appear in that one-column template? What code must I write for that?
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Lorelle

    (@lorelle)

    You can either use Kubrik’s theme and modify it to your own design, which would automatically give you want you want, or, if I remember right (someone correct me!), remove the “include” for the sidebar.php in your single.php file and it should go. I’d actually comment it out rather than remove it, just in case.

    And if you get rid of the menu, remember it will be harder for people to find the rest of your posts. I assume you will have another solution for that.

    Thread Starter moustache

    (@moustache)

    Thank you Lorelle; I followed your hint and I obtained it. What I did:

    1.- Made a copy of index.php and rename it to single.php
    2.- Changed the location of include(get_template_directory() . "/sidebar.php");: I copy it from header.php (or footer.php, don’t remember where was exactly) and paste it in index.php (and not in single.php, obviously ??
    3.- Upload via FTP the new single.php template to wp-content/themes/mytheme folder.
    4.- It works. WordPress assigns automatically single.php template to individual complete entries.

    And if you get rid of the menu, remember it will be harder for people to find the rest of your posts. I assume you will have another solution for that.

    Yes I have; a tiny horizontal menu ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘View articles in his own template.’ is closed to new replies.