Skip to content

Instantly share code, notes, and snippets.

@ScarletPonytail
Last active June 12, 2017 14:16

Revisions

  1. lisawedge renamed this gist Jun 12, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. lisawedge revised this gist Jun 12, 2017. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -31,7 +31,7 @@ if (is_page( 42 )) {




    <?php
    if ( is_front_page() && is_home() ) {
    // Default homepage
    } elseif ( is_front_page() ) {
    @@ -40,4 +40,5 @@ if ( is_front_page() && is_home() ) {
    // blog page
    } else {
    //everything else
    }
    }
    ?>
  3. lisawedge revised this gist Apr 27, 2017. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -26,3 +26,18 @@ if (is_page( 42 )) {
    </div>
    <?php endif; ?>







    if ( is_front_page() && is_home() ) {
    // Default homepage
    } elseif ( is_front_page() ) {
    // static homepage
    } elseif ( is_home() ) {
    // blog page
    } else {
    //everything else
    }
  4. lisawedge revised this gist Apr 11, 2017. 1 changed file with 15 additions and 14 deletions.
    29 changes: 15 additions & 14 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,27 +1,28 @@
    <!-- Using page name -->
    <?php
    if (is_page( 'Wine Investment')) {
    get_template_part( 'carousel-wine-investment' );
    }
    ?>

    <!-- Using page id -->
    <?php
    if (is_page( 42 )) {
    get_template_part( 'carousel-wine-investment' );
    }
    ?>

    <!-- Alternative syntax - Using page name -->
    <?php if (is_page( 'Hearing Aids & Accessories') ):?>
    <div class="slider">
    <?php echo do_shortcode('[soliloquy id="437"]'); ?>
    </div>
    <?php endif; ?>

    <!-- Using page id -->
    <!-- Alternative syntax - Using page id -->
    <?php if (is_page( 42 )):?>
    <div class="slider">
    <?php echo do_shortcode('[soliloquy id="437"]'); ?>
    </div>
    <?php endif; ?>

    <!-- Alternative syntax using page name -->
    <?php
    if (is_page( 'Wine Investment')) {
    get_template_part( 'carousel-wine-investment' );
    }
    ?>

    <!-- Alternative syntax using page id -->
    <?php
    if (is_page( 42 )) {
    get_template_part( 'carousel-wine-investment' );
    }
    ?>
  5. lisawedge revised this gist Apr 11, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,6 @@
    <?php endif; ?>

    <!-- Using page id -->
    <!-- Hearing Aids & Accessories - Banner Slider -->
    <?php if (is_page( 42 )):?>
    <div class="slider">
    <?php echo do_shortcode('[soliloquy id="437"]'); ?>
  6. lisawedge revised this gist Apr 11, 2017. 1 changed file with 24 additions and 2 deletions.
    26 changes: 24 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,28 @@
    <!-- Hearing Aids & Accessories - Banner Slider -->
    <!-- Using page name -->
    <?php if (is_page( 'Hearing Aids & Accessories') ):?>
    <div class="slider">
    <?php echo do_shortcode('[soliloquy id="437"]'); ?>
    </div>
    <?php endif; ?>
    <?php endif; ?>

    <!-- Using page id -->
    <!-- Hearing Aids & Accessories - Banner Slider -->
    <?php if (is_page( 42 )):?>
    <div class="slider">
    <?php echo do_shortcode('[soliloquy id="437"]'); ?>
    </div>
    <?php endif; ?>

    <!-- Alternative syntax using page name -->
    <?php
    if (is_page( 'Wine Investment')) {
    get_template_part( 'carousel-wine-investment' );
    }
    ?>

    <!-- Alternative syntax using page id -->
    <?php
    if (is_page( 42 )) {
    get_template_part( 'carousel-wine-investment' );
    }
    ?>
  7. lisawedge created this gist Feb 24, 2017.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    <!-- Hearing Aids & Accessories - Banner Slider -->
    <?php if (is_page( 'Hearing Aids & Accessories') ):?>
    <div class="slider">
    <?php echo do_shortcode('[soliloquy id="437"]'); ?>
    </div>
    <?php endif; ?>