MemberPress is my plugin of choice for memberships and is what I use on this site. In your MemberPress settings, if you have set an excerpt to appear for unauthorized visitors, YouTube video URLs and links to tweets will appear as is and will not get parsed by WordPress’ oEmbed unless the following is added: […]
WordPress
Using pre_get_posts to set the type of posts appearing on a Tag archive in WordPress
Want to show 2 entries of a journal CPT on economics tag archive page? Add the following in child theme’s functions.php: add_action( ‘pre_get_posts’, ‘sk_change_tag_term_archive_query’ ); /** * Set only Journal CPT entries (two of them) to appear on Economics Tag Archive * * @param object $query data. */ function sk_change_tag_term_archive_query( $query ) { if ( […]
How to order entries by title on Portfolio CPT archive in WordPress
In the members-only forum, a user asked: I use Genesis Portfolio Pro on this site: http://weinschardt.de/portfolio I have tried different Plugins to sort the Portfolio but nothing works. How can I get the Portfolio to sort alphabetically? The default ordering of entries for any post type in WordPress is by published date in descending order. […]
How to set up SVG logo in Genesis
Looking to use a crisp vector svg file as your site’s logo instead of the standard png? There are two ways in which SVG logos can be set up in your Genesis powered WordPress website: As a background As an inline image Prerequisite For either method, first, install and activate SVG Support plugin. Then go […]
How to display Yoast SEO’s Primary Category in Genesis Entry Meta
In the comments section of Custom Shortcode for Primary Category Link in Genesis Entry Meta using ACF tutorial, a user asked: Hello Sridhar! This is helpful. Do you know how we could customize this to use the Yoast Primary Category instead? Since version 3.1, Yoast SEO plugin supports designating a category as the primary category […]
How to add custom attribute to a nav menu item in WordPress
Want to add a custom attribute like target=”foobox” or data-featherlight=”#enews-popup” to a specific nav menu item’s anchor? nav_menu_link_attributes filter hook in WordPress is your friend. For example, adding /** * Add custom attribute and value to a nav menu item’s anchor. * * @author Sridhar Katakam * @link https://sridharkatakam.com/ */ add_filter( ‘nav_menu_link_attributes’, function ( $atts, […]
How to remove “Select options” button from variable products on the main WooCommerce shop page
Updated on August 20, 2018 In Genesis Slack‘s WooCommerce channel, a user asked: Totally random question but does anyone know how to remove the “Select Options” button in WooCommerce Shop Main page? woocommerce_loop_add_to_cart_link filter hook can be used to remove the Select options buttons for each variable product. Add the following in child theme’s functions.php: […]
How to exclude Page(s) from Genesis Archive Page Template
In the members-only forum, a user asked: Hi Sridhar, I cannot find anything that works… how can I leave out a few pages, like “thank you” pages in the page_sitemap.php in Genesis. In my case, I am using your genesis-sample-master and I want to leave out Page ID:11 and ID:720. The Genesis Archive Template uses […]
Video Background in AgentPress Pro
This tutorial provides the steps to replace the full-screen background image in AgentPress Pro’s homepage with a background video using the Video Background plugin. Summary of steps: Set a static Page as front page Wrap .site-header and .home-featured in a custom div on the front page if Home Featured widget area is populated Specify this […]
How to add File Size admin column in WordPress Media Library
Looking to add file size column in the WordPress media library? Add the following in child theme’s functions.php: If you would like to use a plugin for the same, here are a few options: Media Files Tools Admin Columns References: http://wordpress.stackexchange.com/a/195842/14380 https://codex.wordpress.org/Function_Reference/size_format
Recent Comments