Recently I had to add a Bootstrap modal trigger from a WordPress Menu item, the modal trigger requires an attribute of data-toggle with a value of modal. There is no facility to add this to a Menu Item in a menu in WP Dashboard, however their are 2 solutions on how this can be done. Their is a …
Read More
Adding in Header Widget to Genesis Remobile Theme
By default the header widget area in Genesis Remobile Theme is unregistered but can be simply registered back in for use. This guide looks at rearranging the header area in Remobile to have the header-widget area included back in, and also put the menu on the left and less margin and padding in general. So the desktop version …
Read More
Exclude a Category’s Posts from the Home Page in WordPress
To exclude a certain Category’s posts from the home page you just need to know the category ID and then use a filter on the pre_get_posts hook to exclude those posts. To find the ID for the Category just go to the Category and hover over the edit button and the ID appears in the URL …
Read More
List all WordPress Custom Post Types in a Menu
Want to display a list of a certain WordPress Custom Post Types in a list or menu? You can do this with a simple query using WP Query. WP Query is the preferred function to query all posts in WordPress and has a multitude of arguments and parameters that can be passed in to change …
Read More
Swap Post Title and Image Position on Archive Page in Genesis
You can swap the order of the post title and thumbnail featured image of a post on an archive page by rearranging the genesis_do_post_image from its default position in the entry content into the entry header, this is done by removing and adding the function in a higher location. In your functions.php add in function themeprefix_swap_title_image() …
Read More
Git and WordPress workflow for Local Dev on OSX to webserver
This guide shows a Git and WordPress workflow and demonstrates version control using Git from a local development environment on OSX to a live production webserver which is a cPanel server running on CentOS. CentOS cPanel comes with Git and you can do an easy install for OSX. Set up SSH (no passwords) A key requisite for this is …
Read More
Yoast WordPress SEO Settings Guide, Set up SEO in an Optimal Way
WordPress SEO Settings Yoast v1.6 SEO in WordPress just doesn’t cut it until you use the powerful all singing and dancing WordPress SEO plugin from Yoast. This tutorial covers the WordPress SEO plugin by Joost De Valk, it is a powerhouse of a tool that deals with all the SEO configurables you could ever think …
Read More
Moving the Genesis Category/Archive Headline and Intro Text
In Genesis you can set an Category/Archive headline and intro text value inside the man Category edit area; WP Dasboard > Posts > Categories The markup gets added in an .archive-description inside the main .content This is fine in almost every instance, but if you apply a masonry style layout the title and intro are …
Read More