bbPress plugins customization
Remove breadcrumb
function bm_bbp_no_breadcrumb ( $param ){
return true;
}
add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');
How to get current product category slug? global $wp_query; echo $wp_query->query_vars['product_cat'];
Option 1 add_filter( 'genesis_pre_get_option_site_layout', 'genesiscustomlayout' ); function genesiscustomlayout(){ $pageobj = get_queried_object(); $pageid = absint($pageobj->ID); $pagelayout = get_post_meta($pageid , "_genesis_layout" , true); return $pagelayout; } Option 2 This function is to forced your custom post type content layout to full width. Common post type is post, page, and product ( woocommerce plugin pages ) and etc….
<ul> <li>AAA</li> <li>AAA</li> <li>AAA</li> <li>AAA</li> </ul> var ul_width = 0; jQuery( 'ul li' ).each(function(index, element) { ul_width += jQuery( this ).innerWidth; }); jQuery( 'ul' ).css('width', jQuery( this ).width(ul_width) });
First is you must have the browser.php in your current themes. If not, click here and create a file named browser.php in your current themes. Copy the codes below and place it into your function.php file. add_filter('body_class','browser_name_class'); function browser_name_class($classes) { $browser = new Browser(); $browser_detect_replace = str_replace( ' ', '-', $browser->getBrowser('browser_name:Browser:private') ); $browser_name = strtolower(…
In this first part of my debugging series, I dive into the issues plaguing my mobile navigation menu. From unresponsive toggles to hidden elements, join me as I walk through my thought process, inspect code, and start patching up what’s broken. Perfect for developers troubleshooting similar mobile UI headaches. #Debugging #MobileMenuFix #ResponsiveDesign #webdevolopment #FrontendDev #JavaScriptDebugging…
How to get the parameter value or key value on the the window location (page URL)? If you have this URL “examplesite.com/?debug=1” and thinking how to get the value of debug parameter, the codes below is the answer. jQuery( document ).ready( function($){ // Example URL is examplesite.com/?debug=1 var getPostValue = function getPostValue(key) { var pageURL…
It’s going to be end of mine day, however before end I am reading this enormous post to improve my knowledge.
I think the admin of this website is in fact working hard for
his website, for the reason that here every material is
quality based data.
Hey, thanks for sharing so much helpful information with us.
I believe I will reread this post a couple times. Great information!
I just want to say I am just new to blogging and site-building and certainly loved your web-site. More than likely I’m planning to bookmark your site . You definitely come with great articles. Thank you for sharing your web-site.
I just want to mention I am newbie to weblog and certainly enjoyed you’re blog site. Most likely I’m planning to bookmark your blog . You actually come with outstanding articles and reviews. Kudos for sharing with us your webpage.