How do I remove image link from grid loop?

Community Forums Forums Design Tips and Tricks How do I remove image link from grid loop?

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  cdils 1 year, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #16837

    Amy Kvistad
    Post count: 12

    Hi, I have a grid loop set up with the plugin Genesis Grid and want to remove the image link. The following code works except that there is the word “grid” just above each image. How can I remove that?

    /** Remove the link from the post featured image */
    remove_action(‘genesis_post_content’, ‘genesis_do_post_image’);
    add_action(‘genesis_post_content’, ‘child_do_post_image’, 5);

    function child_do_post_image() {

    if ( !is_singular() && genesis_get_option(‘content_archive_thumbnail’) ) {
    genesis_image( array( ‘format’ => ‘html’, ‘size’ => genesis_option(‘image_size’), ‘attr’ => array( ‘class’ => ‘alignleft post-image’ ) ) );

    I am working locally so cannot post a link to the site.




    Post count: 423

    Try removing this bit:

    ‘size’ => genesis_option(‘image_size’),

    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.