Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1409929
    charliesa
    Participant

    I 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

    #1409943
    charliesa
    Participant
    This reply has been marked as private.
    #1410545
    Rue Nel
    Moderator

    Hello 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.

    #1410563
    charliesa
    Participant

    The 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.

    #1410571
    charliesa
    Participant

    Oh, 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.

    #1411010
    Joao
    Moderator

    Let us knnow if you need further help

    Joao

    #1411052
    charliesa
    Participant

    Right 🙂 , 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

    #1411155
    charliesa
    Participant

    Oops! 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’ ); ?>

    #1411187
    charliesa
    Participant

    Works fine…thanks. Close this thread please.

    <?php if ( is_front_page() ) : ?>
    <?php echo do_shortcode(‘[rev_slider alias=”youtube-gallery9″]’); ?>
    <?php endif; ?>

    #1411214
    Jade
    Moderator

    Glad to hear you got it sorted.

    Cheers!

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