• Resolved joseph.c.lawrence

    (@josephclawrence)


    Hi

    I cannot seem to find a way to add classes to the a tag that is generated when using do_action(‘gform_update_post/edit_link’…, or a way of linking a post thumbnail when using this method. I save a string for the html of the post thumbnail by saving get_the_post_thumbnail() to a variable, but when I include this for the ‘text’ parameter in do_action(‘gform_update_post/edit_link’ it always includes double quotation marks, and therefore shows it as a text string and not as an image.

    With the previous version of your plugin, I added classes to some links to make them appear to be buttons (I am using Twitter Bootstrap, so .btn classes). I also wrapped post thumbnails in links to link them to the relevant edit post page. I could of course construct the links easily since they only needed the gform_post_id URL parameter. It seems that for my purposes I must use do_action(‘gform_update_post/edit_link’ to create my links, but now I can only create a text link. Please help!

    Thank you very much.

    https://wordpress.org/plugins/gravity-forms-post-updates/

Viewing 1 replies (of 1 total)
  • Plugin Author Jupitercow

    (@jcow)

    You can add classes to the edit link in new version.

    Example:

    do_action( 'gform_update_post/edit_link', array('class' => "button") );

Viewing 1 replies (of 1 total)

The topic ‘Linking images & link classes’ is closed to new replies.