While this plugin works nicely with the default them, I can't make it work with my current theme. Tried hacking the templates (now in theme folder) but no way !!. I know you're going to ask what theme and it's a premium theme. So, if I paste the page.php template here, can you give me instructions how to make this work? I already tried substituting the headers and footer, but I guess, I'm just out of reach
thank-you (page.php of my theme below.)
<?php
get_header();
fw_top_banner('page', get_post_meta(get_the_ID(), 'header_image', true)); //Get big header image
$advanced_settings = get_option(THEME_PREFIX.'advanced_settings', true);
?>
<!-- Content Section -->
<div id="contentsec">
<div class="inner">
<!-- Columns -->
<div class="columns">
<!-- BreadCrumbs -->
<div class="breadcrumb">
<?php echo get_the_breadcrumb();?>
</div>
<!-- Small side bar left -->
<div class="col1 left" id="left_colum">
<?php if(have_posts()): while(have_posts()): the_post(); ?>
<!-- Blog -->
<div class="blog">
<h4 class="heading backcolr singlepage"><?php the_title();?></h4>
<!-- Post Detail -->
<div class="post detail">
<?php if($advanced_settings['publishing_info'] == 'active'):?>
<div class="postoptions">
<ul>
<li class="author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" class="txthover"><?php the_author(); ?></a></li>
<li class="date"><?php echo get_the_date(); ?></li>
<li class="coments"><a href="<?php comments_link(); ?>" class="txthover"><?php echo comments_number(); ?></a></li>
</ul>
</div>
<?php endif;?>
<?php
if(has_post_thumbnail()):?>
<div class="thumb">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-post');?></a>
</div>
<?php endif;?>
<div class="postdesc"<?php echo ($advanced_settings['publishing_info'] != 'active') ? ' style="border-top:none;margin-top:-5px;"' : '';?>>
<?php the_content(); ?>
</div>
</div>
<!-- Social Network-->
<div class="share">
<div id="sa_share_bar">
<?php
if($advanced_settings['show_links'] == 'active'):?>
<script type="text/javascript">
(function() {
var s=document.createElement('script');s.type='text/javascript';s.async = true;
s.src='http://s1.smartaddon.com/share_addon.js';
var j =document.getElementsByTagName('script')[0];j.parentNode.insertBefore(s,j);
})();
</script>
<ul>
<li><h6 class="bold"><?php _e('Share', 'wisdom_of_life');?></h6></li>
<li><a id="sa_share_facebook" layout="icon" size="24"></a></li>
<li><a id="sa_share_twitter" layout="icon" size="24"></a></li>
<li><a id="sa_share_googleplus" layout="icon" size="24"></a></li>
<li><a id="sa_share_email" layout="icon" size="24"></a></li>
<li><a id="sa_share_share" layout="icon" size="24"></a></li>
</ul>
<?php endif;?>
<!-- Print Button -->
<a href="javascript:void(0);" id="print_page" class="print"> </a>
</div>
</div>
</div>
<?php if($advanced_settings['show_author'] == 'active'):?>
<!-- About Author -->
<div class="aboutauthor">
<div class="thumb">
<?php echo (function_exists('get_avatar')) ? get_avatar(get_the_author_id(), 80) : ''; ?>
</div>
<div class="desc">
<h4 class="colr bold"><?php printf( __('About Author: %s', 'wisdom_of_life'), get_the_author_meta('display_name')); ?></h4>
<p>
<?php echo get_the_author_meta('description');?>
</p>
</div>
</div>
<?php endif;?>
<?php endwhile; endif; ?>
<div class="clear"></div>
<?php if($postType != 'events'):?>
<?php comments_template( '', true ); ?>
<?php fw_comment_form(); ?>
<div class="clear"></div>
<?php endif; ?>
</div>
<!-- Small side bar left -->
<div class="barsmall right" id="right_colum">
<?php
if(is_active_sidebar('page-sidebar')) dynamic_sidebar('page-sidebar');
?>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<?php get_footer(); ?>