• rovh

    (@rovh)


    Hello,

    My website is https://www.rent-orlando-vacation-homes.com and uses the theme Cubismo. The sidebar does not display at all on either my homepage or any posts/subpages and I’m not sure how to resolve the problem (very basic skills here).

    Here is the code for the file wp-content/themes/cubismo_theme/sidebar_homepage.php:

    <div id="sidebar">
    
       <ul>
          <?php
          if ( ! function_exists('dynamic_sidebar') || ! dynamic_sidebar('homepage-sidebar') ) :
          endif; ?>
       </ul>
    
    </div>

    And here is the code for another sidebar wp-content/themes/cubismo_theme/sidebar.php:

    <div class="four columns omega">
    		<?php if ( ! dynamic_sidebar( 'right-blog-sidebar' ) ){
    
    			function widget_custom_layouts($widget){
    				return array(
    					'before_widget' => '<div class="widget widget_cubismo_widget_'.$widget.' clearfix">',
    					'after_layout' => '</div>',
    					'before_title' => '<h2>',
    					'after_title' => '</h2>'
    				);
    			}
    			the_widget('Cubismo_Widget_Search',array('title'=>'Search'),widget_custom_layouts('search'));
    			the_widget('Cubismo_Widget_Categories',array('title'=>'Categories'),widget_custom_layouts('categories'));
    			the_widget('Cubismo_Widget_Tag_Cloud',array('title'=>'Tags'),widget_custom_layouts('tag_cloud'));
    		}
    	?>
    </div>

    I also tried to manually create a sidebar with no luck wp-content/themes/cubismo_theme/inc/sidebar.php:

    <?php
    	register_sidebar(array(
    	  'name' => 'Right Sidebar',
    	  'id' => 'right-blog-sidebar',
    	  'description' => 'Widgets in this area will be shown on the right-hand side.',
    	  'before_widget' => '<div class="widget %2$s clearfix">',
    	  'after_widget' => '</div>',
    	  'before_title' => '<h2>',
    	  'after_title' => '</h2>'
    	));
    
    	register_sidebar(array(
    	  'name' => 'Footer Left Sidebar',
    	  'id' => 'footer-left-sidebar',
    	  'description' => 'Widgets in this area will be shown on the footer left.' ,
    	  'before_widget' => '<div class="%2$s" style="margin: 10px 0px;">',
    	  'after_widget' => '</div>',
    	  'before_title' => '<h3>',
    	  'after_title' => '</h3>'
    	));
    
    	register_sidebar(array(
    	  'name' => 'Footer Center Sidebar',
    	  'id' => 'footer-center-sidebar',
    	  'description' => 'Widgets in this area will be shown on the footer center.',
    	  'before_widget' => '<div class="%2$s" style="margin: 10px 0px;">',
    	  'after_widget' => '</div>',
    	  'before_title' => '<h3>',
    	  'after_title' => '</h3>'
    	));
    
    	register_sidebar(array(
    	  'name' => 'Footer Right Sidebar',
    	  'id' => 'footer-right-sidebar',
    	  'description' => 'Widgets in this area will be shown on the footer right.' ,
    	  'before_widget' => '<div class="%2$s" style="margin: 10px 0px;">',
    	  'after_widget' => '</div>',
    	  'before_title' => '<h1>',
    	  'after_title' => '</h1>'
    	));
    if ( function_exists('register_sidebar') ) {
    register_sidebar(array(
    'name' => 'Homepage Sidebar',
    'id' => 'homepage-sidebar',
    'description' => 'Appears as the sidebar on the custom homepage',
    'before_widget' => '<div style="height: 280px"></div><li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>',
    ));
    }

    Any help anyone can provide to allow my widgets to appear in my homepage or post/subpage sidebars would be very greatly appreciated! If you need other code or information to help resolve the issue please advise.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s vendors.
    https://demo.pebasdesign.com/cubismo/

    Thread Starter rovh

    (@rovh)

    Ok thanks. I have submitted a help ticket with them several days ago but have not heard back. Was hoping to receive some guidance from someone else here. Any ideas of what I can do since I’m not getting a response from the theme’s support team?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar Not Displaying on Any Page’ is closed to new replies.