How to disable inline css styles generated by Gutenberg editor?
How to disable inline css styles generated by Gutenberg editor?
How to disable inline css styles generated by Gutenberg editor?
As it turns out, all I needed to do was add the following to the function.php of my genesis child-theme. add_action(‘init’ , ‘wpec_genesis_add_layout_support’); function wpec_genesis_add_layout_support(){ add_post_type_support( ‘wpsc-product’, ‘genesis-layouts’ ); }
The advantage of using a framework is two-fold: If using a theme framework to build a regular theme, it can give you a head start by giving you mature code (in most major frameworks, anyway) that you can use as a base for your customizations. This gives you more control of the theme framework code … Read more
The first inline CSS is added by WordPress automatically when you are logged in and viewing the front end. It is part of the CSS for the WordPress adminbar. <style type=”text/css” media=”screen”> html { margin-top: 28px !important; } * html body { margin-top: 28px !important; } </style> For the second part of the inline CSS … Read more
If you replace genesis_get_additional_image_sizes(); with genesis_get_image_sizes() you can choose any size image for the widget thumbnail. Replacement featured-post-widget.php is available on GitHub. And here is the replacement code: $sizes = genesis_get_image_sizes(); foreach( (array) $sizes as $name => $size ) echo ‘<option value=”‘.esc_attr( $name ).'” ‘.selected( $name, $instance[‘image_size’], FALSE ).’>’.esc_html( $name ).’ ( ‘.$size[‘width’].’x’.$size[‘height’].’ )</option>’;
I’m pretty sure you have to set your Blog page to the Blog Page Template for the Genesis Settings Exclude Category to work. So, go to your blog page in WP Admin and select ‘Blog’ from the Page Template drop down menu.
Edit :// try this: <?php add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ ); function sk_display_custom_fields() { /*Wordpress loop*/ global $wp_query; query_posts(array( ‘post_type’ => ‘sammenligne’ )); while(have_posts()) : the_post(); ?> $navn = get_field( ‘navn’ ); $type = get_field( ‘type’ ); echo ‘<p>’,$navn , ‘__’, ‘$type’,'</p>’); endwhile; wp_reset_query(); } add_action( ‘genesis_entry_header’, ‘sk_display_custom_fields’ ); genesis(); UPDATE:// Ok I tested ACF’s now. With … Read more
I’m not clear on how your code works as-is, as I mentioned in my comment. It looks like you’re adding an action to call a function inside the function that you want to call with that action. If nothing outside the function invokes it, it never runs. add_action( ‘template_redirect’, ‘check_breadcrumb_condition’ ); function check_breadcrumb_condition(){ global $post; … Read more
If you look in lib/structure/layout.php, towards the bottom, you’ll see: add_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ ); /** * Output the sidebar.php file if layout allows for it. * * @since 0.2.0 * * @uses genesis_site_layout() Return the site layout for different contexts. */ function genesis_get_sidebar() { $site_layout = genesis_site_layout(); //* Don’t load sidebar on pages that don’t … Read more
There are several problems in your provided code. $query -> while( have_posts() ) The WP_Query() return type is object. You are referring to a method that doesn’t exist. Instead, you should use the following: while( $query->have_posts() ) {…} wp_reset_postdata(); inside the conditional This function resets the post’s data, as it suggests. If you use it … Read more