Skip Navigation

[Closed] Add symbol to archive image

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.47 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 2 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2322233

I've got a checkbox as a custom field in a field group. Its purpose is to superimpose a little heart over the featured image of a post, when selected. e.g. hidden link

I'd like to add the heart to the corresponding archive images. Thank you!

hidden link

#2322631

Hello,

In single post, you can use [types] shortcode to check if specific option of custom checkboxes field is checked, and display the little heart image, for example:
[types field="my-checkboxes" option="0"]here display the little heart image[/types]

Then use CSS codes to display the little heart image over post featured image.

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#checkboxes
option:
"zero-based index number"
e.g. option=”0″ Will output the value for the option number specified.

#2325527

Sorry, I don't understand. The heart is already over the featured image on the post! I want to add it to the archive image. Thanks.

#2325657

First, there isn't such kind of built-in feature within Toolset plugins, as I mentioned above, it needs custom CSS codes.

You can try these:
1) Design the WordPress Archive page with Toolset WordPress Archive
https://toolset.com/course-lesson/creating-a-custom-archive-page/

2) In the loop of above Toolset WordPress Archive, output the "little heart" on custom checkboxes field value:
https://toolset.com/forums/topic/add-symbol-to-archive-image/#post-2322631

3) Then use custom CSS codes, display the little heart image over post featured image.

#2330539

Just quickly commenting to reopen ticket. I'll be back tomorrow. Thank you

#2330559

I have marked this thread as "Waiting for feedback" status, please update here if you still need assistance for it.

The topic ‘[Closed] Add symbol to archive image’ is closed to new replies.