-
AuthorPosts
-
August 7, 2014 at 4:33 am #79552
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
August 7, 2014 at 4:45 am #79562Hey 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. 🙂
August 9, 2014 at 6:43 am #81166Hello,
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
August 9, 2014 at 8:00 am #81199Hi 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.
August 10, 2014 at 9:36 am #81667Hello,
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’ ); ?>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
August 10, 2014 at 10:52 am #81681Hi 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.
August 10, 2014 at 11:28 am #81698This reply has been marked as private.August 10, 2014 at 11:58 am #81707Your’e welcome 🙂
October 12, 2014 at 12:33 pm #123822Hi 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
October 13, 2014 at 6:13 am #124128Hi Damir,
Please refer to this post http://theme.co/x/member/forums/topic/essential-grid-above-header-on-certain-page-only/
-
AuthorPosts