Support » Plugin: Display Featured Image for Genesis » Blog categories display image in less-wide format

Viewing 1 replies (of 1 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    So, Workstation Pro is a bit interesting in that it’s adding a new <div> element and markup on archive pages into the same hook which the plugin uses. But the theme does it in several chunks, at different priorities, which end up with the featured image being added inside of the new element.

    Although you can change which hook the featured image is added to, I’m not sure it will help in this situation, as I think the genesis_after_header hook is the correct one, and there isn’t an easy way to change the priority on the plugin action. I think the easiest way would be to modify the priorities in the theme–look for the workstation_page_description_meta function in the functions.php file. For example, in that theme is this block (which will affect category pages):

    if ( is_archive() && ! is_post_type_archive() ) {
    		remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );
    		add_action( 'genesis_after_header', 'workstation_open_after_header', 5 );
    		add_action( 'genesis_after_header', 'genesis_do_taxonomy_title_description', 10 );
    		add_action( 'genesis_after_header', 'workstation_close_after_header', 15 );
    	}

    The three add_actions have priorities of 5, 10, and 15 (the featured image is added in at 10). If you change them to (for example) 11, 15, and 20, then the featured image will be added before the category title/description. Since the theme is adding the title/description in a new location, though, you’ll probably see that duplicated as well, so you’ll need to decide whether you want to remove the theme’s title/description or the plugin’s title/description, similar to your question with the Centric Pro theme. HTH

Viewing 1 replies (of 1 total)
  • The topic ‘Blog categories display image in less-wide format’ is closed to new replies.