[Theme: Trusted]Sidebar disappear
-
Hi,
I have a little trouble with my theme Trusted responsive, and qTranslate plugin, “i guess”; really i don’t know from where comes the problem… but the case is this:I have a blog page, when i switch the lang, the sidebar from the blog page disappears, i look with firebug the content of the html, and the aside appears, but empty…
here is the content from sidebar.php
<?php global $themeple_config; $sidebar_style = ""; if(isset($themeple_config['current_sidebar']) && $themeple_config['current_sidebar'] != 'fullsize'){ ?> <aside class="span3 sidebar" id="widgetarea-sidebar"> <?php $use_defailt = true; if ($themeple_config['current_view'] == 'blog' && dynamic_sidebar(__('Sidebar Blog', 'themeple')) ) : $use_defailt = false; endif; if ($themeple_config['current_view'] == 'portfolio' && dynamic_sidebar(__('Sidebar Portfolio', 'themeple')) ) : $use_defailt = false; endif; if ($themeple_config['current_view'] == 'page' && dynamic_sidebar(__('Sidebar Pages','themeple'))) : $use_defailt = false; endif; $page_title = themeple_check_custom_widget('page'); if (function_exists('dynamic_sidebar') && dynamic_sidebar(__('Page','themeple').': '.$page_title) ) : $use_defailt = false; endif; $cat_title = themeple_check_custom_widget('cat'); if (function_exists('dynamic_sidebar') && dynamic_sidebar(__('Category','themeple').': '.$cat_title) ) : $use_defailt = false; endif; if ($use_defailt) { //themeple_default_widgets('categories'); } ?> </aside> <?php } ?>the single.php
<?php global $themeple_config; $themeple_config['multi_entry_page'] = false; $themeple_config['current_sidebar'] = themeple_get_option('single_post_sidebar_pos'); $spancontent = 12; if($themeple_config['current_sidebar'] == 'fullsize') $spancontent = 12; else $spancontent = 9; get_header(); $themeple_config['current_view'] = 'blog'; ?> <!-- Page Head --> <section id="content"> <div class="container" id="blog"> <div class="row"> <?php if($themeple_config['current_sidebar'] == 'sidebar_left') get_sidebar() ?> <div class="span<?php echo $spancontent ?>"> <?php get_template_part( 'template_inc/loop', 'index' ); ?> <?php comments_template( '/template_inc/comments.php'); ?> </div> <?php wp_reset_query(); $themeple_config['current_view'] = 'blog'; if($themeple_config['current_sidebar'] == 'sidebar_right') get_sidebar(); ?> </div> </div> </section> <?php get_footer(); ?>and the index.php
<?php global $themeple_config; do_action('themeple_routing_frontpage'); get_template_part('template', 'blog'); ?>I pray to jesus to find some answer to my problem here 🙁
Thanks for the Help that you gave me.
The topic ‘[Theme: Trusted]Sidebar disappear’ is closed to new replies.