Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Buppha

    (@buddies)

    I have chosen “NO” under the “Do you want display Static Front Page:” in Option Panel in order to show the blog page, then I get this on the blog page:

    Notice: Trying to get property of non-object in /home/buddyg5/public_html/buppha.com/wp-content/themes/spasalon/pink-header.php on line 33

    Notice: Trying to get property of non-object in /home/buddyg5/public_html/buppha.com/wp-content/themes/spasalon/pink-header.php on line 34

    Notice: Trying to get property of non-object in /home/buddyg5/public_html/buppha.com/wp-content/themes/spasalon/pink-header.php on line 35

    How do I get rid of it?
    My blog page is: https://buppha.com/blog/

    Imran Ali

    (@imranaliweb)

    Hi

    Blog page is a not a template file…if you are used blog page then copy and paste this code in page.php file. (Theme package >> page.php )

    <?php get_template_part('pink','header');?>
    <!-- Container for products -->
    <div class="container">
      <!-- Main -->
      <div class="_blank"></div>
      <div class="row-fluid">
        <!-- Spa-Saloon main Content -->
        <div class="<?php if(!is_active_sidebar('sidebar-primary')){ echo 'span12'; }else { echo 'span8'; } ?>">
          <!-- Blog-post-detail 1-->
          <?php the_post();?>
          <h2 class="blog_detail_head"><?php the_title(); ?></h2>
          <?php $defalt_arg =array('class' => "blog-detail-img" )?>
          <?php if(has_post_thumbnail()):?>
          <div class="media" >
            <a>"title="<?php the_title(); ?>"><?php the_post_thumbnail('', $defalt_arg); ?>
            </a>
          </div>
          <?php endif;?>
          <div class="media" >
            <div class="media-body">
              <div class="blog-detail-content"><?php the_content(); ?> </div>
              <?php if(wp_link_pages(array('echo'=>0))):?>
              <div class="pagination pagination-large">
                <ul class="page-numbers"><?php
                  $args=array('before' => '
    <li>'.__('Pages:'),'after' => '</li>
    ');
                  wp_link_pages($args); ?>
              </div>
              <?php endif;?>
              <?php comments_template( '', true );?>
            </div>
          </div>
        </div>
        <!-- /Spa-Saloon main Content -->
        <div class="sidebar-topspacer"></div>
        <?php get_sidebar(); ?>
      </div>
    </div>
    <?php get_footer();?>

    let me know for further assistance

    Thanks

    Thread Starter Buppha

    (@buddies)

    Hi, thanks for your prompt response! So, where do I put these codes in the page.php file?

    Thread Starter Buppha

    (@buddies)

    I have replaced the new code on page.php, but nothing has changed?! See my blog https://buppha.com/blog/

    Imran Ali

    (@imranaliweb)

    hi Buddies

    i am see your blog page

    and error in pink-header.php file

    Please Replace pink-header.php file into this code

    <?php get_header();
    $current_options=get_option(‘spa_theme_options’);
    $call_us=$current_options[‘call_us’];
    $call_us_text=$current_options[‘call_us_text’];
    if(is_category()){
    $bd=$current_options[‘banner_description_category’];
    $h1=$current_options[‘banner_title_one_category’];
    $h2=$current_options[‘banner_title_two_category’];
    }else if(is_archive())
    {
    $bd=$current_options[‘banner_description_author’];
    $h1=$current_options[‘banner_title_one_author’];
    $h2=$current_options[‘banner_title_two_author’];
    }
    else if(is_404())
    {
    $bd=$current_options[‘banner_description_404’];
    $h1=$current_options[‘banner_title_one_404’];
    $h2=$current_options[‘banner_title_two_404’];
    }
    else if(is_tag())
    {
    $bd=$current_options[‘banner_description_tag’];
    $h1=$current_options[‘banner_title_one_tag’];
    $h2=$current_options[‘banner_title_two_tag’];
    }
    else if(is_search())
    {
    $bd=$current_options[‘banner_description_tag’];
    $h1=$current_options[‘banner_title_one_tag’];
    $h2=$current_options[‘banner_title_two_tag’];
    }
    else{ $bd=get_post_meta( $post->ID, ‘banner_description’, true );
    $h1=get_post_meta( $post->ID, ‘heading_one’, true );
    $h2=get_post_meta( $post->ID, ‘heading_two’, true );
    }
    ?>
    <!– pink strip –>
    <div class=”container”>
    <div class=”pink-container”>
    <div class=”row-fluid”>
    <div class=”span3″ id=”pink_strip”>
    <dl class=”pink_title”>
    <dt><?php if($h1!=”){ echo $h1; } else{
    _e(“GET YOURSELF”,’sis_spa’);} ?>
    </dt>
    <dt>
    <div class=”pink-head”><?php if($h2!=”) { echo $h2;} else{
    _e(“REFRESHED”,’sis_spa’);} ?></div>
    </dt>
    <dd></dd>
    </dl>
    </div>
    <div class=”span6″ id=”banner_desc”>
    <p><?php if($bd!=”){ echo $bd;} else{
    _e(” Banner Description Donec justo odio, lobortis eget congue sed, rutrum sit amet mauris. Curabitur sed lectus nulla. Curabitur sed lectus nulla.lobortis eget congue sed, rutrum sit amet mauris. Curabitur sed lectus nulla rutrum sit amet mauris “,’sis_spa’);}?></p>
    </div>
    <div class=”spa_tag”>
    <span>

    <p><?php if($call_us_text){ echo $call_us_text; ?> <?php if($call_us!=”){ echo $call_us;} else{ echo ‘1234567890’; } } ?></p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <!– End of pink strip –>

    let me know for further Assistance

    Thanks

    Thread Starter Buppha

    (@buddies)

    Hi, I have done what you told me to, and it still doesn’t work?

    Hi, I have the same problem with the home page in the blog page… please help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘The blog page does not show’ is closed to new replies.