• Hi guys,

    I need some help with an issue.

    I have a widget area on my home page with 4 widgets in it.
    Each widget has a title, an image and a description.

    I want to know how can I add a dynamic title for the whole area, above all the 4 widgets.

    Thank you very much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’re probably going to need to show a link to your site so people can see what you’re talking about and what theme you’re using to get an answer for this.

    When you say “dynamic title” do you mean you’re wanting to pull the title from the database?

    You would probably create a child theme of your theme if you haven’t already, then code the database call to get the title in the appropriate page for the child theme.

    Thread Starter Mihai Ghelmegeanu

    (@mihaai)

    Thank you very much for your reply.

    I uploaded a mockup of the widget area.
    mockup

    This is for a WP theme that I’m currently developing and I’m not using child themes.

    I need to know how to add the title “Section Name” from above that needs to be dynamic so the user can change it in the back-end according to what the widget area will contain.

    I think I need a field or something where the user can enter the section name. I just don’t know where and how to place it.

    I’m still not positive I’m with you, but I think you’re saying you want a Settings page for the theme you’re designing where the end user could put the value for the Section Name?

    If so, have a look at this article “Create a Settings Page for Your WordPress Theme.”

    You can find a lot more info on it by Googling something like “wordpress add settings to theme”.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dynamic widget area title’ is closed to new replies.