WordPress.org

Ready to get started?Download WordPress

Forums

Display sidebar name (6 posts)

  1. numero7
    Member
    Posted 3 years ago #

    Hello I'm looking how to display the name of my sidebar on top of it.

    Lets say that I have a sidebar named news and I want to show NEWS on the top before the widgets, as a title.

    I'm not a php expert so if anyone have an idea, I will be very grateful...

    thanks for your help.

  2. grvpande
    Member
    Posted 3 years ago #

    If you are using widget then you can give any title to it..

  3. numero7
    Member
    Posted 3 years ago #

    Hello thanks for your answer, but each widget have his own title. I need one title for the whole sidebar like :

    NEWS (sidebar title)
    ----------------------
    widget1 (widget title)
    blablablablabalablab

    widget2 (widget title)
    babdasbabababab

    widget3 (widget title)
    blablablablabalablab

    ------------------------------------
    Thats why the widget title cannot work.
    sorry for my bad english

  4. dragonsjaw
    Member
    Posted 3 years ago #

    If you are using a template
    sidebar-news.php
    that you created,
    you can hard code the title into it, and set up the styles within your css file.

  5. grvpande
    Member
    Posted 3 years ago #

    then change in the sidebar.php with some CSS to it above the code which checks the availability of dynamic-sidebar..

  6. numero7
    Member
    Posted 3 years ago #

    Yes I think I will do this.. it's easier.
    Thanks for your help...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags