Support » Plugin: Gutenberg Blocks – Ultimate Addons for Gutenberg » post grid html in excerpt

  • Resolved hb82


    Hello, is it possible to add html in excerpt when using post grid? or maybe some code in functions.php that can make this work?
    Thanks for this great plugin 🙂

    • This topic was modified 3 months, 2 weeks ago by  hb82.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vrunda Kansara



    Currently, one can not do that. But we will surely add this in our upcoming release next week.

    We will provide action hooks so that you can add HTML from theme’s functions.php fie.

    We appreciate you for bringing this to us.

    Vrunda Kansara

    Great, thanks Vrunda 👍

    Plugin Author Vrunda Kansara



    We have updated UAGB to v1.8.0. You can add HTML before/after the excerpt for Post Grid using the below action hooks. You need to add the below-given code to your child theme’s functions.php file.

    	function (  $post_id, $attributes ) {
    		echo '<p>I love UAGB</p>';
    		// Here you can fetch any HTML as per the post.

    If you need the HTML after the excerpt you need to change uagb_single_post_before_excerpt_grid to uagb_single_post_after_excerpt_grid.

    I hope this resolves your doubts.

    Note: This will work only at frontend.

    Vrunda Kansara

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.