Q2W3 Fixed Widget dont working
-
I am looking for ways to fix but still no fix.
my site Sua may lanhhttps://www.ads-software.com/extend/plugins/q2w3-fixed-widget/
-
This is my functions.php;
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php /** * WPZOOM Theme Functions * * Don't edit this file until you know what you're doing. If you mind to add * functions and other hacks please use functions/user/ folder instead and * functions/user/functions.php file, those files are intend for that and * will never be overwritten in case of a framework update. */ /** * Paths to WPZOOM Theme Functions */ define("FUNC_INC", get_template_directory() . "/functions"); define("WPZOOM_INC", FUNC_INC . "/wpzoom"); define("THEME_INC", FUNC_INC . "/theme"); define("USER_INC", FUNC_INC . "/user"); /** WPZOOM Framework Core */ require_once WPZOOM_INC . "/init.php"; /** WPZOOM Theme */ require_once THEME_INC . "/functions.php"; require_once THEME_INC . "/sidebar.php"; require_once THEME_INC . "/post-options.php"; /* Theme widgets */ require_once THEME_INC . "/widgets/featuredposts.php"; require_once THEME_INC . "/widgets/flickrwidget.php"; require_once THEME_INC . "/widgets/social.php"; /** User functions */ require_once USER_INC . "/functions.php"; function search_by_title_only( $search, &$wp_query ) { global $wpdb; if ( empty( $search ) ) return $search; // skip processing - no search term in query $q = $wp_query->query_vars; $n = ! empty( $q['exact'] ) ? '' : '%'; $search = ''; $searchand = ''; foreach ( (array) $q['search_terms'] as $term ) { $term = esc_sql( like_escape( $term ) ); $search .= "{$searchand}($wpdb->posts.post_title LIKE '{$n}{$term}{$n}')"; $searchand = ' AND '; } if ( ! empty( $search ) ) { $search = " AND ({$search}) "; if ( ! is_user_logged_in() ) $search .= " AND ($wpdb->posts.post_password = '') "; } return $search; } add_filter( 'posts_search', 'search_by_title_only', 500, 2 );
I dont think what u said has it in there
The post page slowly goes up when I activate the plugin
Your theme has a more complex structure.
Look for register_sidebar() function in theme subfolder, file sidebar.phpthis is the sidebar.php;
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php if ( option::get('ad_side_select') == 'on' && option::get('ad_side_pos') == 'Before widgets' ) { ?><div class="banner"> <?php if ( option::get('ad_side_code') <> "" ) { echo stripslashes(option::get('ad_side_code')); } else { ?><a>"><img src="<?php echo option::get('ad_side_imgpath'); ?>" alt="<?php echo option::get('ad_side_imgalt'); ?>" /></a><?php } ?> </div><?php } if ( function_exists('dynamic_sidebar') ) dynamic_sidebar('Sidebar'); if ( option::get('ad_side_select') == 'on' && option::get('ad_side_pos') == 'After widgets' ) { ?><div class="banner"> <?php if ( option::get('ad_side_code') <> "" ) { echo stripslashes(option::get('ad_side_code')); } else { ?><a>"><img src="<?php echo option::get('ad_side_imgpath'); ?>" alt="<?php echo option::get('ad_side_imgalt'); ?>" /></a><?php } ?> </div><?php } ?> <div class="cleaner">?</div>
I added what you said at the start, so the beginning looked like this;
<?php if ( option::get('ad_side_select') == 'on' && option::get('ad_side_pos') == 'Before widgets' ) { ?><div id="%1$s" class="banner">
But nothing happened, it is still having the same problem
Revert back your changes. They have no sence.
I have downloaded the latest Photoria version (2.0.2).
Regitser_sidebar fucntions are located in functions/theme/sidebar.php file.You need to make changes only to the first rigister_sidebar function:
register_sidebar( array( 'name' => 'Sidebar', 'before_widget' => '<div class="widget">', 'after_widget' => '<div class="cleaner"> </div></div>', 'before_title' => '<h2>', 'after_title' => '</h2>', ) );
Edited version:
register_sidebar( array( 'name' => 'Sidebar', 'before_widget' => '<div id="%1$s" class="widget">', 'after_widget' => '<div class="cleaner"> </div></div>', 'before_title' => '<h2>', 'after_title' => '</h2>', ) );
Thank you so much!
I made the changes in my cpanel, and it worked perfectly!
Thanks again!:)
You did it! Good work! ??
I am looking for ways to fix but still no fix.
my site MagazinaOnlinehttps://www.ads-software.com/extend/plugins/q2w3-fixed-widget/
Pls Help me
seat1980!
Looks like you have problems with footer.php.
You need to place<?php wp_footer(); ?>
call right before</body>
tagThanks Max for the reply!
work perfectly!
Thanks again!:)
Hey Max, having issues getting the plugin to work with my site here: https://www.nonage.org/client/cgf/who-we-are/partners/
Any idea what I could do?
fshbrsh!
Your problem – widgets without id attributes.
How to fix see FAQ and this thread: https://www.ads-software.com/support/topic/not-working-hopefully-an-easy-fixWorked beautifully, thank you for your help!
Really appreciate your promptness and help
deprito!
In your theme files you need to find sidebar init function – register_sidebar(). The most common location is in functions.php file.
Then you have to edit before_widget parameter. Just addid="%1$s"
to widget container. For more info see FAQ and this thread.
- The topic ‘Q2W3 Fixed Widget dont working’ is closed to new replies.