Tagged: icon grid
-
AuthorPosts
-
January 9, 2021 at 11:10 pm #1271255
I’ve been trying to get a working flip box content on the site with images instead of icons. I see there are a lot of people who want this. Your icon grid used to work with images but it no longer does. I tried the fix mentioned in another thread that entailed editing the icongrid.php page but that did not work either. Is there some way to still do this? I’m hoping I don’t have to switch to a different theme. Thx.
January 9, 2021 at 11:37 pm #1271258To add more detail – an earlier forum post told the user to remove the esc HTML portion for the title on the icongrid.php page (in child theme).
So I changed:
$output .= "<{$title_el} class='av_icongrid_title icongrid_title{$icongrid_title} {$av_title_font_classes} {$title_el_cls}' {$markup} {$title_styling_str}>" . esc_html( $atts['title'] ) . "</{$itle_el}>";
To:
$output .= "<{$title_el} class='av_icongrid_title icongrid_title{$icongrid_title} {$av_title_font_classes} {$title_el_cls}' {$markup} {$title_styling_str}>" ;
But that does not work. I note that so many people have asked for this and the answers are always private. You could save yourself a lot of time by creating a document or example for people to look at. I have tried every possible way to put the image HTML code into the title field
(<img src="xxxx.jpg" />, img src="xxxx.jpg", ###lt### img src="xxxx.jpg" ###gt### - from the link you provide to fix it)
and none of these work. It’s been holding me up from finishing this project because this no longer works. Can you please write me with the solution and make that PUBLIC so other people with the same issue can get an answer that works? Thx.- This reply was modified 3 years, 11 months ago by waterwalk.
January 10, 2021 at 12:03 am #1271260One more quick note. When I try to use the hashtag equivalent ###lt### ###gt### the image does show on the front BUT then the back side content does not show at all. Really would like to see this be usable again. Let me know how to fix. Thx.
January 13, 2021 at 5:37 am #1272026Hi,
Thank you for the inquiry.
In the modification above, looks like you completely removed the title attribute instead of just omitting the esc_html function. That will cause the title to not render at all. Please try to replace the line with the following code instead.
$output .= "<{$title_el} class='av_icongrid_title icongrid_title{$icongrid_title} {$av_title_font_classes} {$title_el_cls}' {$markup} {$title_styling_str}>" . $atts['title'] . "</{$itle_el}>";
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.