Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Devin Walker

    (@dlocc)

    It looks like there’s an issue with your theme. The widget titles HTML is messed up. Here’s what I found after inspecting:

    <h3class="otw-widget-title"reservation at="" opentable<="" h3="">

    Go into your theme and check how your sidebar widget titles are being handled.

    Bottomline: theme issue, not the plugin.

    Thread Starter nimbus2006

    (@nimbus2006)

    Thank you so much for the advice.

    I too was having the same problem and I don’t think this is a “theme issue” and maybe some bit of plugin review might be needed? I was able to fix the issue by adding a specific css class for the widget “before_title” attribute.

    This should be valid but does not work:

    'before_title' => '<h3>'

    This is required and shouldn’t be:

    'before_title' => '<h3 class="widget-title">'

    In my opinion this is an issue with the plugin because not everyone needs, nor is it required to have this css class on the title element. All other plugins I’ve encountered work just fine and display the title without problems, I’m having to add this css class specifically for your plugin to work properly.

    Bottomline: great plugin, however, this is a plugin issue not a theme issue.

    Plugin Author Devin Walker

    (@dlocc)

    Thanks for pointing that out blackboard. I’ll be sure to update the way the plugin handles widget titles in the next release.

    Has this issue been fixed? I just installed the plugin and the title doesn’t display be default. I’ve added a title widget above yours on a client site. Awesome plugin and also dig how it’s responsive.

    Plugin Author Devin Walker

    (@dlocc)

    Hey illusiodesign – can you post the code that register’s that sidebar? I want to see how you are outputting the widget titles.

    <div id="sidebar" class="clearfix">
    
    	<?php if(is_author()) : ?>
    		<div class="widgetBox sidebarBox author clearfix">
    			<h3><?php _e('Author Info', 'themetrust'); ?></h3>
    			<?php global $wp_query; $current_author = $wp_query->get_queried_object(); ?>
    	    	<?php echo get_avatar( $current_author->user_email, '80' ); ?>
    	    	<p><?php echo $current_author->description; ?></p>
    	    </div>
    	<?php endif; ?>
    
        <?php
    	    if(is_archive() && is_active_sidebar('sidebar_posts')) : dynamic_sidebar('sidebar_posts');
    		elseif(is_home() && is_active_sidebar('sidebar_posts')) : dynamic_sidebar('sidebar_posts');
    	    elseif(is_single() && is_active_sidebar('sidebar_posts')) : dynamic_sidebar('sidebar_posts');
    	    elseif(is_page() && is_active_sidebar('sidebar_pages')) : dynamic_sidebar('sidebar_pages');
    		elseif(is_search() && is_active_sidebar('sidebar_posts')) : dynamic_sidebar('sidebar_pages');
    		elseif(is_front_page() && is_active_sidebar('sidebar_home')) : dynamic_sidebar('sidebar_home');
    	else : ?>
    
    		<?php if (!dynamic_sidebar('sidebar')) ;?>  		
    
    	<?php endif; ?>
    </div><!-- end sidebar -->

    We’re using a child theme based on Hayden from Theme Trust.

    Plugin Author Devin Walker

    (@dlocc)

    Hey there – the function I’m looking for should look like:

    register_sidebar( array(
    		'name'          => __( 'Sidebar 1', 'roots' ),
    		'description'   => __( 'Used with page template sidebar 1', 'roots' ),
    		'id'            => 'sidebar-1',
    		'before_widget' => '<section class="widget %1$s %2$s">',
    		'after_widget'  => '</div></section>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3><div class="widget-content">',
    	) );

    I want to see how before_title and after_title are being used specifically.

    Gotcha, here it is:

    register_sidebar(array(
    	'name' => 'Sidebar',
    	'id' => 'sidebar',
    	'description' => __('This is the default widget area for the sidebar. This will be displayed if the other sidebars have not been populated with widgets.', 'themetrust'),
    	'before_widget' => '<div id="%1$s" class="%2$s sidebarBox widgetBox">',
    	'after_widget' => '</div>',
    	'before_title' => '<h3>',
    	'after_title' => '</h3>'
    ));
    Plugin Author Devin Walker

    (@dlocc)

    Thanks! So the issue is you can’t get any title to display at all? Hidden or not? Nothing displays for the widget. That’s why you’re using the text widget to output a title?

    Yes, the title won’t display when using your plugin. So that’s the workaround – creating a title above and adjusting the bottom margin.

    By the way, I purchased and installed the pro version and the title is displaying normally.

    Plugin Author Devin Walker

    (@dlocc)

    Good to know thanks, it should be fixed on the upcoming release now.

    Just FYI, the free version still has title issues. I had to purchase the paid version to get it to show correctly. Not too cool.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Widget title disable’ is closed to new replies.