Second nav is merged with the first in mobile

In functions.php, change the function magazine_responsive_menu_settings() to the following: function magazine_responsive_menu_settings() { $settings = [ ‘mainMenu’ => __( ‘Menu’, ‘magazine-pro’ ), ‘subMenu’ => __( ‘Submenu’, ‘magazine-pro’ ), ‘menuClasses’ => [ ‘combine’ => [ ‘.nav-primary’, ‘.nav-header’, ], ], ]; return $settings; } Basically, in the combine, I removed ‘.nav-secondary’, This is how it looks like now

Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework

It’s not because of the archive_box in cpt-archive-settings.php but because of genesis_taxonomy_archive_options in genesis/lib/admin/term-meta.php. You can remove it using if you place the following in child theme: remove_action( ‘admin_init’, ‘genesis_add_taxonomy_archive_options’ ); Update: Those settings are appearing because of the action genesis_add_taxonomy_archive_options attached to admin_init hook. add_action( ‘admin_init’, ‘genesis_add_taxonomy_archive_options’ ); Which again is like this function … Read more

How to keep my custom theme changes after updating genesis child theme

Genesis (and others like it) has always had a problem with a lack of consensus on how to cope with updates to its child themes. The simple conventional answer is that you should seldom or never update them, because it may be a very time-intensive process to avoid breaking things. StudioPress does not do auto-updates … Read more

get_post_meta not working inside loop

There is nothing ‘improper’ about the second block of code. Its just written for debugging purposes. The key difference is that that second block used get_the_ID(). Try that. add_action (‘genesis_before_post_content’, ‘gteh_tagline’); function gteh_tagline() { $meta = get_post_meta(get_the_ID(), $field[‘dbt_text’], true); echo $meta; } Or try to pull in $post with global. add_action (‘genesis_before_post_content’, ‘gteh_tagline’); function gteh_tagline() … Read more

Displaying Custom Fields on Post with Genesis Child Theme

How about instead of genesis_custom_field(‘instrument’); use: echo genesis_get_custom_field(‘instrument’); Plus the genesis_after_post_title action hook is deprecated since 1.7.0 and you should use genesis_entry_header with correct priorities. For more information please use the reference links below. Reference: genesis_after_post_title Genesis 2.0 Hooks reference

htaccess: Remove trailing slash from URL ending with .xml/ only

If you’re outputting a sitemap, there’s no reason to wait for the query for your page- which is what is producing the redirect. Hook an earlier action and you won’t need anything to counter the trailing slash, because it won’t happen- EDIT Here’s a complete version with registering query vars, rules, and parse_request action: // … Read more

How do I turn a 404 page into an automatic search with the info from the url?

This can be done in two easy steps. Upgrade your site search with a plug in, such as Relevanssi (optional). Add the following code in functions.php or via Code Snippets (thx to @Howdy_McGee and Russell Jamieson for ideas!) function wpse_204310() { global $wp_query; if( is_404() && !is_robots() && !is_feed() && !is_trackback() ) { $uri = … Read more