WordPress.org

Forums

Changing my index.php into a Single Post template (12 posts)

  1. ACS1
    Member
    Posted 6 years ago #

    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 .

  2. jbbrwcky
    Member
    Posted 6 years ago #

    To create a single post template copy the index.php and rename it single.php Then you can play with that.

  3. ACS1
    Member
    Posted 6 years ago #

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

  4. ACS1
    Member
    Posted 6 years ago #

    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?

  5. jbbrwcky
    Member
    Posted 6 years ago #

    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.

  6. ACS1
    Member
    Posted 6 years ago #

    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.

  7. Nile Flores
    Member
    Posted 6 years ago #

    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.

  8. ACS1
    Member
    Posted 6 years ago #

    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?

  9. jbbrwcky
    Member
    Posted 5 years ago #

    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.

  10. ACS1
    Member
    Posted 5 years ago #

    Thanks it worked!

  11. sphoia.myles
    Member
    Posted 5 years ago #

    Hello,

    You must visit this link

  12. notknow
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic