Tagged: x
-
AuthorPosts
-
March 16, 2017 at 12:54 pm #1409929
charliesaParticipantI have a YouTube Gallery that already works, but it isn’t where I need it. It’s on a test page I wrote in Cornerstone, and I need to move it to a non-Cornerstone page. It actually needs to be on the home page.
Anyway, I thought the easiest way to just use something like <?php echo do_shortcode(“[gallery9]”); ?> strategically placed, but that’s the key. Just where should the call go, and what conditions be placed around it? (It is to be executed ONLY on the Home page, so is_home() maybe???).
Basically, I have no idea. Help please
March 16, 2017 at 1:08 pm #1409943
charliesaParticipantThis reply has been marked as private.March 16, 2017 at 8:57 pm #1410545
Rue NelModeratorHello There,
Thanks for writing in! I have inspected your Test Video 2 page and it seems that it is just a page created in Cornerstone. I am confused because you have added columns and youtube video in each of the column. Do you want this page to be your homepage? Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
Thank you in advance.
March 16, 2017 at 9:29 pm #1410563
charliesaParticipantThe test page has two things on it. I’m only interested in the first revolution slider, and not the two columns below that with the embedded youtube video code.
I’m sorry if it was confusing. This test page was just to give you an idea.
I believe to do what I had in mind I need to add the “echo do short_code(“[gallery9]”) inside of is_home() in _content_the_content. I did it, and was able to add it where I wanted just below the slider under the Masthead.
However, I think I’ll just wait, and rewrite the entire thing in CornerStone…easier.
So now that I confused you further, scrap this entire post, I got it…Thank you 🙂 sorry to take up your time.
March 16, 2017 at 9:36 pm #1410571
charliesaParticipantOh, I still forgot to mention, the “test” page is in Cornerstone, the home page isn’t. The content of the test page goes in the non-CornerStone page (home page). Never the less, I have it. Thanks.
March 17, 2017 at 9:06 am #1411010
JoaoModeratorLet us knnow if you need further help
Joao
March 17, 2017 at 9:41 am #1411052
charliesaParticipantRight 🙂 , let you know next time I can confuse you, waste your time, and then answer it myself. I do apologize. I’ll try and be more clear and careful in the future. I do appreciate the excellent support! It’s good to know I have it. Thanks
March 17, 2017 at 10:50 am #1411155
charliesaParticipantOops! One quick silly question. In the case below, I have a “Static Home Page. I wanted to put in a hook using is_front_page() where if true, a short code (rev slider “youtube gallery9″) would be executed. However the format is incorrect I think?
<?php
// =============================================================================
// VIEWS/GLOBAL/_CONTENT-THE-CONTENT.PHP
// —————————————————————————–
// Display of the_content() for various entries.
// =============================================================================?>
<?php do_action( ‘x_before_the_content_begin’ ); ?>
<div class=”entry-content content”>
<?php do_action( ‘x_after_the_content_begin’ ); ?>
if ( is_front_page () ) {
<?php echo do_shortcode(‘[rev_slider alias=”youtube-gallery9″]’); ?>
}<?php the_content(); ?>
<?php x_link_pages(); ?><?php do_action( ‘x_before_the_content_end’ ); ?>
</div>
<?php do_action( ‘x_after_the_content_end’ ); ?>
March 17, 2017 at 11:22 am #1411187
charliesaParticipantWorks fine…thanks. Close this thread please.
<?php if ( is_front_page() ) : ?>
<?php echo do_shortcode(‘[rev_slider alias=”youtube-gallery9″]’); ?>
<?php endif; ?>March 17, 2017 at 11:40 am #1411214
JadeModeratorGlad to hear you got it sorted.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1409929 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
