• Resolved wp77512

    (@gradplanet)


    How do I change the Header text widget on each page? I’d like different text for each page on the green bar directly under the header image.

    <div class=”header-widget-area-wrapper”>
    <section id=”text-3″ class=”widget widget_text”> <div class=”textwidget”><p>TEXT</p>
    </div>
    </section>
    </div>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello gradplanet,

    You can use PHP Code Widget plugin to achieve this. Follow below steps:

    1. Install and activate PHP Code Widget plugin.
    2. Use PHP Code widget in Full-Width Header widget area.
    3. Add PHP code with condition according page.

    Example :

    
    <?php
    global $post;
    if(get_the_title($post) == 'My Demo Page A') {
      echo 'My Demo Page A Text';
    }
    elseif(get_the_title($post) == 'My Demo Page B') {
    echo 'My Demo Page B Text';
    }
    ?>
    

    \

    Hope this will helps you.

    Thanks !

    Thread Starter wp77512

    (@gradplanet)

    Thank you for a quick response and taking the time to answer. It works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Karuna – Different Header Text for each page’ is closed to new replies.