• Hello. I’m a new WordPress user. My goal is to remove the links on my post titles. I read in another topic that to do that, I have to edit templates such as index.php. How do I edit such templates? Do I have to download the WordPress program to do so? (Currently, I use my browser to edit my blog). I’m using the Bueno theme.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi!
    To make modifications to the theme, you are only supposed to modify your theme files.
    In order to edit files, you can use any text editor such as Notepad, or if you want, a code editor such as Dreamweaver (paying), or any other code editor.
    As for what you are asking to do, are you 100% positive you want to do that? Because if you do, then your readers will not be able to access your posts individually for reading, commenting, etc. If you understand these implications, then do follow the following steps to remove links to posts in the home page:

    1. open your index.php with the text/code editor of your choice;
    2. Locate line 12 of that file, which reads:

    <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

    3. Replace that line with this one:

    <h2 class="title"><?php the_title(); ?></h2>

    Presto, you are done!

    Thread Starter honsmos

    (@taharqapiye)

    Hello Marventus. Thank you for responding. I am 100% positive that it’s what I want to do. Where can I find index.php? I’ve searched everywhere on the dashboard, but I couldn’t find the file.

    I usually don’t recommend editing theme files and the likes on WP.
    If you have the theme folder on your computer, make a backup copy first, make the change I indicated above, and then upload the modified version of the index.php file to your site through FTP.
    Make sure to put the file in the right server folder, i.e.:

    your-domain/wp-content/themes/bueno/

    If you think that’s too complicated and would rather just do it from WP, log in to your admin panel, then go to Appearance –> Editor and choose the Main Index Template (index.php) to edit.

    Thread Starter honsmos

    (@taharqapiye)

    Thank you for responding. I think doing the second method would be better for me. I logged into WP, and I checked under Users on the dashboard to make sure that I was the admin (I am). I looked under Appearance on the dashboard, but did not see Editor. Do I have to upgrade my account to see it? All I see under Appearance is
    – Themes
    – Widgets
    – Menus
    – Theme Options
    – Header
    – Background
    – Custom Design
    – Mobile
    -iPad

    Sorry if I’m missing something.

    Your Appearance settings seem to be missing the Editor option. Try switching themes to the any of the default WP themes, TwentyTen or TwentyEleven.
    Here is a screenshot of where to locate the option in question.

    Thread Starter honsmos

    (@taharqapiye)

    Ah, that’s unfortunate. I’ll take a look at the default WP themes. Thank you for your help, Marventus :).

    Sorry, my last message was unclear.
    I meant switching to a different theme so as to check whether or not the “Editor” link appears (just to confirm).
    You can still edit the theme you are using in your local computer and upload it via FTP. You can use your web host’s or cPanel’s ftp application to do this, or you can use FileZilla or any other FTP client.

    Thread Starter honsmos

    (@taharqapiye)

    Ah. If I change my theme and then switch back to the original theme, will all my settings remain?

    I will research how to edit files on my local computer. I’m unfamiliar with the things you were mentioning. But I’ll look into it.

    Thank you for your help.

    If I change my theme and then switch back to the original theme, will all my settings remain?

    Only your theme-related settings are affected when you switch themes. However, no need to worry: settings are stored in the DB so when you switch back to your theme all your settings will come back as well.
    Cheers!

    Thread Starter honsmos

    (@taharqapiye)

    Thanks! I’ll try switching themes.

    Hi honsmos,
    Were you able to figure this out?
    Do let me know if you need further assistance.
    Cheers!

    Thread Starter honsmos

    (@taharqapiye)

    Hello Marventus. I was able to switch themes. But I decided to keep my current theme (Bueno) because I became attached to it.

    I haven’t yet look into editing files on my local computer. But I plan to do that. I should have mentioned that I was gonna revisit that option in the future. Thanks for following up on me. ??

    Use ftp to edit themes ??

    Thread Starter honsmos

    (@taharqapiye)

    Understood :). I will have to look that up.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Removing links from post titles’ is closed to new replies.