• Resolved rolyestemonio

    (@rolyestemonio)


    Hi Everyone,

    Is it possible to add a widget area below the header portion in the jetpack mobile theme when viewing on mobile phones? For example like this:

    <header id="branding" role="banner">Default Title Site</header>
     <div class="phone-widget"><a href="tel:551666">551-666</a></div>

    Please help. 🙁

    Your help is highly appreciated.

    Thanks.

    https://ww.wp.xz.cn/plugins/jetpack/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I’m afraid that’s not possible at the moment, but we’ll consider adding hooks to make that possible. You can follow our progress here:
    https://github.com/Automattic/jetpack/issues/1555

    Thanks for the feedback!

    Thread Starter rolyestemonio

    (@rolyestemonio)

    how can i use this hooks? example putting a shortcode on it?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Here is how you can use one of the new hooks:

    function rolyestemonio_custom_mobile_header() { ?>
    <header id="branding" role="banner">Default Title Site</header>
     <div class="phone-widget"><a href="tel:551666">551-666</a></div>
    <?php }
    add_action( 'jetpack_mobile_header_after', 'rolyestemonio_custom_mobile_header' );

    To output a shortcode, something like this would do the trick:

    function rolyestemonio_custom_mobile_header_shortcode() {
    echo do_shortcode( '[your-shortcode]' );
    }
    add_action( 'jetpack_mobile_header_after', 'rolyestemonio_custom_mobile_header_shortcode' );
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Widget area below header’ is closed to new replies.