• Hi. I am trying to add a custom html widget to my site and to target content to specific pages.The widget is working but the content is the same on every page. How can I add content (in this case an image title) to specific pages?

    • This topic was modified 3 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • What is the desirable output of your widget?

    For example: I want to create a widget that displays the title of the feature image of current post/page.

    Thread Starter SoutraDesign

    (@soutradesign)

    Thanks jaynarayan. I want to use the custom html widget to display the title of the specific image used as the background on a specific page. So I need the following html to target each page where a different image appears.

    <div id=”headerbanner” class=”widget widget_block widget_text”>
    <p>The Eildon Hills, Scottish Borders</p>
    </div>

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Targeting custom html’ is closed to new replies.