WordPress.org

Ready to get started?Download WordPress

Forums

Chage the default widget title display + hiding (4 posts)

  1. mslocum
    Member
    Posted 3 years ago #

    I'm new to customizing WordPress. I have a blog that has several widgets on the side with titles. My main desire is to use a categories widget. The default categories widget has the title in h4 and then an "a" tag. I don't mind the h4, but I don't want an anchor tag. I've searched all over this site and php files and I can't find a way to change the actual code structure.

    Can someone point me to where this code is generated?

    <h4>Categories</h4>

    needs to be

    <h4>Categories</h4>

    I don't mind changing the actual wordpress files or maybe I could even write a plugin so it is not effected by updates. If I write a plugin I will want to just copy the source, so I'll need to know where it is located.

  2. mslocum
    Member
    Posted 3 years ago #

    <h4><a href="#" title="Toggle" class="hide_widget">Categories</a></h4>

    needs to be

    <h4>Categories</h4>

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    the 'toggle' bit and the link on the widget title seems to be a 'feature' of your theme or of a plugin - maybe you can disable it.

    you can probably use css to make the widget title look 'normal' ...

    theme name and download link?

  4. mslocum
    Member
    Posted 3 years ago #

    Sorry for the slow reply. Another project came up that stole my attention.

    You're right, it was in my theme. Thanks for pointing me in the right direction.

Topic Closed

This topic has been closed to new replies.

About this Topic