bbPress plugins customization
Remove breadcrumb
function bm_bbp_no_breadcrumb ( $param ){
return true;
}
add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');
How to fix the “Google Maps API error: MissingKeyMapError” using WPBakery Visual Composer WordPress plugin? Are having trouble fixing this error on your end? This error is visible in your console developer tools. Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error To fix the issue, first you have to look the script handler that is registered for…
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….
To replace the default WordPress jquery ( http://192.185.73.118/~anthonycarbon/wp-includes/js/jquery/jquery.js ) library with the Google hosted jquery library, copy the below codes and paste it into your functions.php file. The7 WordPress theme dequeue script. Example is `dt-above-fold`. add_action( 'wp_enqueue_scripts', 'my_deregister_javascript', 20 ); add_action( 'wp_print_scripts', 'wp_print_scripts_deregister', 100 ); function my_deregister_javascript() { if ( ! is_admin() && isset( $_GET['wp_print_scripts']…
How to add, remove, replace a classes in image using the_post_thumbnail()? Let’s say we have this classes in image object. <img class="attachment-to-be-replace size-to-be-replace wp-post-image" src="https://www.anthonypagaycarbon.com/wp-content/uploads/image.jpg" alt="" width="800" height="600" > To replace the class name “to-be-replace”, copy this code to your functions.php add_filter( 'wp_get_attachment_image_attributes', function($attr){ $attr['class'] = str_replace( 'to-be-replace', 'hello-world', $attr['class'] ); return $attr; }); Output…
Colorbox default parameters defaults = { transition: "elastic", speed: 300, width: false, initialWidth: "600", innerWidth: false, maxWidth: false, height: false, initialHeight: "450", innerHeight: false, maxHeight: false, scalePhotos: true, scrolling: true, inline: false, html: false, iframe: false, fastIframe: true, photo: false, href: false, title: false, rel: false, opacity: 0.9, preloading: true, current: "image {current} of {total}",…
Add Woocommerce product featured image using GeneratePress WordPress theme in few steps. You need to access your functions.php. Either on a parent theme or a child theme. In my case I’m using a child theme so gonna paste the codes below on child themes functions.php Please copy the code below and paste it into your…
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.