Placing Title Above Slideshow and Above Posts
  • I would like to place the title "Featured Articles" above the slideshow, and the title "Latest Posts" below the slideshow with the latest post following on below.

  • cbavotacbavota January 31

    Just add some HTML to the index.php file. One would go before the slideshow code and the other would go before the get template part code. Make sure it is outside of any PHP tags or else you will get an error.

  • This is the index.php code:

    <?php get_header(); ?>
    <?php <br /> $notin = pbt_notin();
    $num = (pbt_theme_option('slideshow')==1) ? 4 : 5;
    $featuredcat = pbt_theme_option('fp_featured');
    $posts = array(
    "posts_per_page" => $num,
    "cat" => $featuredcat,
    "ignore_sticky_posts" => 1
    );
    $featured = new WP_Query();
    $featured->query($posts);
    $x = 1;

    if(pbt_theme_option('slideshow')==1) pbt_tabberota($featured);
    if(pbt_theme_option('slideshow')==2) pbt_sliderota($featured);
    if(pbt_theme_option('slideshow')==3) pbt_scrollerota($featured);
    if(pbt_theme_option('slideshow')==4) pbt_tabberota_nu($featured);

    $advanced = pbt_theme_option('basic_advanced');
    if($advanced == 1 && is_home()) {
    get_template_part('loop', 'basic-index');
    } else { ?>


    <?php get_template_part('loop', 'index'); ?>

    <?php<br /> } // end Advanced if statement
    ?>
    <?php get_footer(); ?>

    Can you show me exactly how to add the text? When I do it, I just get a white screen when I go to my site.

    The text above the slideshow would be "Featured Articles" and the text below the slideshow and above the posts would be "Daily News and Reviews".

    Thanks.

  • cbavotacbavota February 2

    After this:

    <?php get_header(); ?>
    <h2>YOUR TITLE</h2>


    And before this:
    <h2>YOUR TITLE</h2>
    <?php get_template_part('loop', 'index'); ?>

  • Perfect. Thank you.

This discussion has been closed.
← All Discussions

Hey there!

Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.

Register

Categories

In this Discussion

Tagged