WordPress.org

Support

Support » Themes and Templates » Changing my index.php into a Single Post template

Changing my index.php into a Single Post template

  • Hi!

    I’m new to the WordPress community and I have recently started construction on a website.
    I have read WordPress For Dummies, 2nd Edition by Lisa Sabin-Wilson and I do not know HTML.

    I currently have the WordPress theme “The Future Of The Internet” by “Web Hosting Fan” activated.(Which I downloaded from http://topwpthemes.com/the-future-of-the-internet/).

    I want to remove the menus on my index.php page that read “categories”, “main menu” etc.(on the right hand side of my page(the only side with menus)). If I do that I am turning my index.php into a Single Post template. Or so I think..
    The problem is I don’t know how to do that. I am unable to locate the coding(in my index.php) described in WordPress For Dummies so I can change it. Also I am not entirely sure what I must change to make my index.php into a single post template

    Any possible assistance would be appreciated .

Viewing 11 replies - 1 through 11 (of 11 total)
  • To create a single post template copy the index.php and rename it single.php Then you can play with that.

    Thank you for the advice, I’ll give it a shot. I’ll come back to you with the result in a while.

    I’ve copied the index.php in the theme’s directory, renamed it to single.php and nothing visibly changed. Was I supposed to copy and paste the index.php the theme’s directory?

    So you have the theme directory, wp-content/themes/YOURTHEME/ right? In there is an index.php file – simply copy that and rename it single.php in that same directory.

    I did what you said, reloaded my theme and no visible change. Here’s what I did.
    1.)Opened wp-content/themes/MYTHEME/
    2.)Copy and pasted the index.php in MYTHEME’s directory, the copy’s title read “index_2.php”
    3.)I renamed index_2.php to “single.php”
    4.)Re-applied MYTHEME as my website’s theme and viewed the preview. Nothing visible has changed.

    Why not specify in your WordPress admin panel what page you want as your index. You can customize your template to include or exclude the features by removing or replacing the html you wish to use.

    You only need to alter your template or make another template, perhaps content.php

    Remember, when you make a template that it must include the header, content page and footer.

    ———-

    That theme comes widgetized so you need to find out which sidebar whether it is sidebar 1 or sidebar 2 that contains the Main menu or categories. You can remove the widgets from your admin panel.

    I’m aware that you can include and exclude features by removing or replacing html, the problem is that I can’t find the code described in WordPress For Dummies so I can change it.
    What process do I have to follow to specify what page I want as my index.
    I’m currently viewing my “dashboard” Now what?

    ACS1, if you go to your admin settings, then Reading, you can select a static post as the front page. Then use the pulldown menu to select which one.

    Thanks it worked!

    Hello,

    You must visit this link

    I just cannot believe that a simple file like blog.php or blog_tpl.php doesn’t do the job.

    As soon as i don’t use the frontpage for displaying the blog the blog DEFINITELY no longer is the index.php (as index is a naming convention for the homepage, at least that’s what i thought) and therefor i shouln’d be forced to follow such completely
    confusing habits.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Changing my index.php into a Single Post template’ is closed to new replies.
Skip to toolbar