Optimise page loading time faster on WordPress using Genesis child theme [closed]

There are plenty of ways to improve the speed of your WordPress site Irrespective of theme/ plugins you have used. Add caching plugin supercache which will show tremendous decrease in the speed loading time of your site. Put Following script in your sites .htacces file # BEGIN EXPIRES ExpiresActive On ExpiresDefault “access plus 10 days” … Read more

Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?

Remove: add_filter( ‘get_the_excerpt’, ‘replace_post_excerpt_filter’ ); function replace_post_excerpt_filter($output) { return $output; } from your code, and you should find it works. The trouble with nested functions, as you have here, is that once the parent function is called the first time, it defines the inner function, but when the parent function is called the second time … Read more

I’m new in developing responsive WordPress Theme, so which framework to use or work from scratch? [closed]

The answer to which framework you should use is — no one knows. From code perspective there is certain degree of baseline theme functionality/experience — enforced by formal standards. Those things are recommended/required for inclusion into official theme directory, outside of that people can do things a little more lax. Frameworks exist for different reasons. … Read more

Adding a new layout for genesis

I have attempted answering my own question with the following code: // Added to layout.php in /genesis/lib/structure.php add_action(‘genesis_before’, ‘modalwindow_layout_logic’); function modalwindow_layout_logic() { $site_layout = genesis_site_layout(); if ( $site_layout == ‘modalwindow’ ) { // Remove default genesis sidebars remove_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ ); remove_action( ‘genesis_after_content_sidebar_wrap’, ‘genesis_get_sidebar_alt’); remove_action( ‘genesis_footer’, ‘genesis_do_footer’ ); remove_action( ‘genesis_header’, ‘genesis_do_header’ ); // Remove layout … Read more

Custom Post Type Pagination For Genesis Child Theme [closed]

EDIT Try this code: remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); add_action( ‘genesis_loop’, ‘sk_do_loop’ ); function sk_do_loop(){ global $wp_query; $temp_query = $wp_query; // Fix for the WordPress 3.0 “paged” bug. $paged = 1; if ( get_query_var( ‘paged’ ) ) { $paged = get_query_var( ‘paged’ ); } if ( get_query_var( ‘page’ ) ) { $paged = get_query_var( ‘page’ ); … Read more

Genesis Style Selector causes PHP warning [closed]

This should remove the warning $selector = get_theme_support( ‘genesis-style-selector’ ); $wp_customize->add_control( ‘genesis_color_scheme’, array( ‘label’ => __( ‘Select Color Style’, ‘genesis’), ‘section’ => ‘genesis_color_scheme’, ‘settings’ => $this->get_field_name( ‘style_selection’ ), ‘type’ => ‘select’, ‘choices’ => array_merge( array( ” => __( ‘Default’, ‘genesis’ ) ), array_shift( $selector ) ), ) );

Inserting a shortcode into a genesis menu?

The problem is the fact that you are trying to echo something into a string, echo should only be used to output something, so simply change the following line: $items .= ‘<li class=”myclass”>’ . echo do_shortcode(‘[shopping_cart]’) . ‘</li>’; To this: $items .= ‘<li class=”myclass”>’ . do_shortcode(‘[shopping_cart]’) . ‘</li>’; Edit: On another note, this is merely … Read more

techhipbettruvabetnorabahisbahis forumueduedueduedueduseduedusedusedusedu