Adding an attribute and value to a WordPress Menu Item
…like href=”#MyModal” Get the ID in the code using Web Inspector tools, add the ID as a variable, once that ID is matched add in the new attribute and value,…
Read MoreChange the Genesis Theme Copyright Line in Footer for WordPress
…'<div class=”creds”><p>Copyright ©’; echo date(‘Y’); echo ‘ · <a href=”https://wpbeaches.com/”>Neil Gee</a> – All Rights Are Reserved · Powered by<a href=”https://wpbeaches.com”> WP Beaches</a></p></div>’; } Just change the above content to…
Read MoreChange WooCommerce Price to be by Weight
…as below… https://gist.github.com/neilgee/488450732c147510e2c283fe7bb2f70a In the checkout filter I dropped the ‘per kg’ and just left ‘kg’ as the unit price is not used rather the total price. If you…
Read MoreCreating a Genesis Child Theme from Scratch of the Genesis Framework in WordPress
…Theme Name: genesischild Theme URI: https://wpbeaches.com Description: Designed by <a href=”https://wpbeaches.com”>Neil Gee</a>. Author: Neil Gee Version: 1.0.0 Template: genesis Tags: the child of genesis */ @import url(‘../genesis/style.css’); This is the…
Read MoreRedirect an admin user role on login with login redirect
…string $redirect_to URL to redirect to. * @param string $request URL the user is coming from. * @param object $user Logged user’s data. * @return string */ function themeprefix_login_redirect( $redirect_to,…
Read MoreAdd a Custom Post Type Template in WordPress 4.7
WordPress 4.7 brings a new feature in the ability to add a Custom Post Type template in a similar way a Page Template is added. A page template can be…
Read MoreRemove Archive Title & Description from Blog Page in Genesis
…file, so in your case this is the sample theme, just adding it in at the end is fine – it works I have tested – perhaps this is not…
Read MoreAdding a Site Login/Logout Link to an existing Menu in WordPress
…me some suggestions as I am new to this. Thanks! Marc This works fine with my primary menu but for some reason it doesn’t work with the secondary menu. I…
Read MoreRemove Post Info and Post Meta from Custom Post Types in Genesis Theme in WordPress
…type called “News” and I created a custom taxonomy with “New Categories” and “News Tags” so that I hopefully have not confused them with the regular “Categories” and “tags” used…
Read MoreCreate a content flyout overlay in Beaver Themer Layout Header
…any BB module available. Attached at the end is also the template file which you can directly import with all the code. https://gfycat.com/SnoopyBossyBittern Create a Beaver Themer header layout…
Read More