WordPress.org

Ready to get started?Download WordPress

Forums

Removing links from post titles (15 posts)

  1. honsmos
    Member
    Posted 1 year ago #

    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.

  2. Marventus
    Member
    Posted 1 year ago #

    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!

  3. honsmos
    Member
    Posted 1 year ago #

    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.

  4. Marventus
    Member
    Posted 1 year ago #

    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.

  5. honsmos
    Member
    Posted 1 year ago #

    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.

  6. Marventus
    Member
    Posted 1 year ago #

    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.

  7. honsmos
    Member
    Posted 1 year ago #

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

  8. Marventus
    Member
    Posted 1 year ago #

    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.

  9. honsmos
    Member
    Posted 1 year ago #

    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.

  10. Marventus
    Member
    Posted 1 year ago #

    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!

  11. honsmos
    Member
    Posted 1 year ago #

    Thanks! I'll try switching themes.

  12. Marventus
    Member
    Posted 1 year ago #

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

  13. honsmos
    Member
    Posted 1 year ago #

    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. :)

  14. johnfotios
    Member
    Posted 1 year ago #

    Use ftp to edit themes :)

  15. honsmos
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic