Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #79552

    Chris H
    Participant

    Hello,

    I have installed X-Theme now with Ethos and want to place the “Essential Grid” (plugin) fullwith direct above the Masthead – like “Post Carousel” would be, or below the Masthead. Where must I place the shortcode to do this.

    Thanks

    Chris

    #79562

    Christian
    Moderator

    Hey Chris,

    You will want to add your code in wp-header.php located in wp-content\themes\x\framework\views\ethos. Place your code above

    <?php x_get_view( 'ethos', '_post', 'carousel' ); ?>

    or below

    <?php x_get_view( 'global', '_navbar' ); ?>

    Try to experiment on the location. If you’re using a child theme, copy the modified file in the same directory in your child theme’s folder.

    Hope that helps. 🙂

    #81166

    Chris H
    Participant

    Hello,

    Thanks for your reply. I dont know how to integrate the shortcode for my “Essential Grid”. What is the exact syntax I have to write in my “wp-header.php”?
    … the shortcode which I would enter in a page is: [ess_grid alias=”featured_events”]

    Thanks in advance

    Chris

    #81199

    Christopher
    Moderator

    Hi Chris,

    Please create a Child theme using THIS GUIDE, then add the wp-header.php from x/framework/views/ethos/wp-header.php to YOUR CHILD THEME/framework/views/ethos/wp-header.php. You can follow THIS LINK for more information.

    Then open up the newly added wp-header.php file and add your plugin shortcode into the file using do_shortcode function.
    Please CLICK HERE for more information on that.

    Thank you.

    #81667

    Greg W
    Participant

    Hello,

    The following do_shortcode function is great for displayng one shortcode (ex. Google map) across all pages. However, is it possible to insert a different map on select pages?

    For example: State map on home page, city maps on interior pages, and district maps on posts.

    = = = = = MY CHILD THEME/framework/views/ethos/wp-header.php = = = = =

    <?php x_get_view( ‘global’, ‘_header’ ); ?>

    <?php x_get_view( ‘global’, ‘_slider-revolution-above’ ); ?>

    <header class=”<?php x_masthead_class(); ?>” role=”banner”>
    <?php x_get_view( ‘ethos’, ‘_post’, ‘carousel’ ); ?>
    <?php x_get_view( ‘global’, ‘_topbar’ ); ?>
    <?php x_get_view( ‘global’, ‘_navbar’ ); ?>

    <?php echo do_shortcode( ‘[google-map-shortcode-example]’ ) ?>

    <?php x_get_view( ‘ethos’, ‘_breadcrumbs’ ); ?>
    </header>

    <?php x_get_view( ‘global’, ‘_slider-revolution-below’ ); ?>
    <?php x_get_view( ‘ethos’, ‘_landmark-header’ ); ?>

    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

    #81681

    Christopher
    Moderator

    Hi Greg,

    Well actually you can use THIS FUNCTION and use if statement to decide where to add your shortcode using that do_shortcode function.

    You can find the ID of your page or post using THIS guis.

    Thank you.

    #81698

    Greg W
    Participant
    This reply has been marked as private.
    #81707

    Christopher
    Moderator

    Your’e welcome 🙂

    #123822

    Damirres
    Participant

    Hi X Team,

    first of all GREAT WORK!!!

    Im really enjoying working with the Integrity.

    Question:

    I would like to show Essential Grid only on certain page above header and cant figure it out how. I followed above steps and managed to integrate Essential Grid above Header but its shown on all pages.

    Here is php:

    <?php

    // =============================================================================
    // VIEWS/INTEGRITY/WP-HEADER.PHP
    // —————————————————————————–
    // Header output for Integrity.
    // =============================================================================

    ?>

    <?php x_get_view( ‘global’, ‘_header’ ); ?>

    <?php x_get_view( ‘global’, ‘_slider-revolution-above’ ); ?>

    <?php echo do_shortcode(‘[ess_grid alias=”Style 2 – Even Grid”]’) ?>

    <header class=”<?php x_masthead_class(); ?>” role=”banner”>
    <?php x_get_view( ‘global’, ‘_topbar’ ); ?>
    <?php x_get_view( ‘global’, ‘_navbar’ ); ?>
    <?php x_get_view( ‘integrity’, ‘_breadcrumbs’ ); ?>
    </header>

    <?php x_get_view( ‘global’, ‘_slider-revolution-below’ ); ?>
    <?php x_get_view( ‘integrity’, ‘_landmark-header’ ); ?>

    Please help,

    Regards,

    Damir

    #124128

    Paul R
    Moderator