WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Editing title text (15 posts)

  1. johnupatree
    Member
    Posted 1 year ago #

    I am trying to edit the text in a h6 heading, using Firebug I am able to edit it live and know what I want to achieve. However I cannot for the life of me find the HTML file to edit!
    Can anyone point me in the right direction please?

    Hope this helps:

    <body class="archive category category-vegetarian category-70 logged-in admin-bar custom-background page-template-template-sidebar-content-php customize-support">
    <div id="cboxOverlay" style="display: none;"></div>
    <div id="colorbox" class="" style="padding-bottom: 42px; padding-right: 42px; display: none;">
    <div id="wrapper">
    <header id="header">
    <hgroup id="current-location">
    Currently browsing category
    <h1 class="page-title"> Vegetarian </h1>
    <div class="category-description"> </div>

    The text I wish to edit is "Currently browsing category", in fact I want to remove it altogether.

    Thanks in advance from a newbie to HTML and WordPress, on a very steep learning curve ;-))

    John

  2. Ryan Yu
    Member
    Posted 1 year ago #

    Hi johnupatree,

    It depends on which part of html it is on.
    If it is on the header, you may want to check out header.php in your theme folder.

    If you could post your website url, we could have better ideas.

  3. johnupatree
    Member
    Posted 1 year ago #

    Hi Ryan

    Thanks, the URL is

    http://johnpsmyth.co.uk/

    I have looked in the various .php files, but I cannot see the text I wish to change. What am I missing?

    John

  4. Ryan Yu
    Member
    Posted 1 year ago #

    Hi johnupatree,

    You are looking at this page
    http://johnpsmyth.co.uk/?m=201301

    To remove the "Currently browsing category", login to your admin page and go to Appearance > Theme Options > General. Scroll down and untick "Show current location in archive pages" under the "Blog Pages".

    Or if you want to remove the html code, you need to find a template. If you login to your server via FTP and go to the theme folder, you will see some files starting with template-###.php.

    It seems like you are using template-blog-left-sidebar.php.
    Open it in your preferred text editor like Dreamweaver, and comment out this line (line 8)

    <?php pinboard_current_location(); ?>

    Hope it helps!

  5. johnupatree
    Member
    Posted 1 year ago #

    Hi Ryan,

    Thanks once again for a rapid and detailed reply, much appreciated. However I may not have made myself very clear, I wish to retain the category, but remove the text that says " Currently browsing category"

    So when I click on view all posts in a category, it brings up the category title, say Vegetarian, but does not display the text "Currently browsing category"

    Hope this makes sense, I know what I am trying to say, sorry if I am not making it very clear :-/

    John

  6. Ryan Yu
    Member
    Posted 1 year ago #

    Hi johnupatree,

    I see... so you want to only remove the text "Currently browsing category"?

    Then open up functions.php and find this line (about line 1279)

    <h6 class="prefix-text"><?php _e( 'Currently browsing', 'pinboard' ); ?> <?php echo $archive; ?></h6>

    and remove that line. It will work.

    Ryan

  7. johnupatree
    Member
    Posted 1 year ago #

    Hi Ryan,

    Excellent, just what I wanted, thank you.

    I think I need to do some reading on PHP and how it functions, I know the principle, but not what or how it 'links' to, ie were is that text "Currently Browsing Category" it has to be somewhere?

    Anyway that is another thread for another day!

    Many thanks

    John

  8. johnupatree
    Member
    Posted 1 year ago #

    Ryan,

    Just as an aside, I have spent the last few hours looking at PHP and have had the penny drop. I now understand how the text is generated and why I could not see it! Clever stuff.

    Thanks again

    John
    ps give my love to The Rocks :-)

  9. Ryan Yu
    Member
    Posted 1 year ago #

    Hi johnupatree,

    No worries! Just let me know if you have any further questions.

    ps give my love to The Rocks :-)

    Sure will do :)
    Have a great weekend!

  10. 1531bkt
    Member
    Posted 10 months ago #

    Hi, I just came across this old thread and it helped me to delete the "Currently browsing category" text wonderfully. Thank you. However, in doing so, it also deleted my category Description that was previously showing.

    It used to appear:

    Currently browsing category
    CATEGORY 1
    Description text would then appear here.

    After deleting the line recommended above from my functions.php, it deleted all of the above. How do I get just the Category and the Description to still appear? Want it to look like this:

    CATEGORY 1
    Description text would then appear here.

    Thanks!

  11. Ryan Yu
    Member
    Posted 10 months ago #

    Hi 1531bkt,

    Try to remove the bit below:

    <?php _e( 'Currently browsing', 'pinboard' ); ?>

  12. 1531bkt
    Member
    Posted 10 months ago #

    Hi, Ryan -

    Removed it, updated, and nothing changed.

    It's still missing the category and description.

    :-\

  13. Ryan Yu
    Member
    Posted 10 months ago #

    Hi 1531bkt,

    Could you send me your functions.php code? You can use pastebin.com.

  14. 1531bkt
    Member
    Posted 10 months ago #

    Thanks, Ryan.

    http://pastebin.com/f0jQw4Qw

    This has the removed line put back in (around 1300), done when I was unsuccessfully trying to figure things out on my own yesterday.

    Please let me know what you think about how to get the Category and Description to show, but not the "Currently Browsing" text.

  15. Ryan Yu
    Member
    Posted 10 months ago #

    Hi 1531bkt,

    It should work ok. OR probably I am looking at a different thing.

    Can you send me the url and a screenshot of the area having the issue?

Topic Closed

This topic has been closed to new replies.

About this Topic