Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1359516
    Keanu
    Participant

    Hi there,

    I’m looking to add a cornerstone element to the top and bottom of the page same as on every other page. And possibly also a slider in future. How would I go around doing this please? I did think to create a new blog-style page using the “recent posts” element in cornerstone, however it looks completely different.

    Any help would be appreciated!

    Kind Regards,
    -Josh

    #1359544
    Christian
    Moderator

    Hey Josh,

    Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/. Or, you might want to take a look at this third party plugin http://northshoreit.me/cornerstone-live-templates/. Please take note though that we do not have support for third party plugins. For usage instructions and issues, please contact the plugin developer.

    Thanks.

    #1359713
    Keanu
    Participant

    Hi Christian,

    No problem at all! Thanks for the quick reply. I’ll try first with the plugin, and if that doesn’t work, i’ll look towards the custom development.

    Thanks!
    -Josh

    #1359738
    Rahul
    Moderator

    Sure!

    We are always here standing by to assist you in anyway.

    Regards.

    #1359845
    Keanu
    Participant

    Thank you for your suggestions, sadly that plugin wasn’t of much use! Managed to do it myself though by adding in php code into the header / footer. Grabbed the conditional tags from WordPress.org – https://codex.wordpress.org/Conditional_Tags

    Here is the code for anyone wanting to do the same.

    
    <?php 
    // =============================================================================
    // Custom code - FOR BLOG PAGE
    // =============================================================================
    ?>
    
    <div id="cta" class="x-section " style=""><div id=" " class="x-container max width" style="margin: 0px auto;padding: 0px;">
    <?php if ( is_front_page() && is_home() ) {
      // Default homepage
    } elseif ( is_front_page() ) {
      // static homepage
    } elseif ( is_home() ) {
      echo do_shortcode ( ' YOURSHORTCODEHERE ' );
    } else {
      //everything else
    }
    ?>
    </div></div>
    
    <?php
    // =============================================================================
    // End of custom code
    // =============================================================================
    ?>
    

    That code allows it to display only on the blog page, due to not being a php developer, i’m not entirely sure if you can cut the code down, but C’est la vie, it works! Hope this helps someone in my situation! 🙂

    Kind Regards,
    -Josh

    (Just a side note! Make sure you place it BEFORE the “Landmark header”, else it’ll display after the header on the page!)

    #1359865
    Jade
    Moderator

    Thanks for sharing you solution, Josh.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1359516 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>