Hello,
Could you please help me add HTML in GP Pro?
I see there are 2 options: 1. Elements > Hooks, but this requires adding a function to enable PHP execution in Hooks if it’s disabled in wp-config.php, which permits PHP execution in Hooks, and 2. Adding the HTML directly to the child theme?
If I don’t want to allow PHP execution at all in Elements/Hooks, then Option 2 is the only viable one, right? If that’s the case, could you please explain how to add HTML to a child theme and use the hook: generate_after_archive_description so the filter appears just above the posts list?
The HTML below is to add filtering functionality to a custom category php template that’s using WPSP for the posts feed. Below is the HTML to add, for reference.
<span class="scf_tags_group" style="color: #3a3a3a;">
<a class="scf_tag_button preselected" data-val="All" style="color: #000000;">ALL</a>
<a class="scf_tag_button" data-val="Engagements" style="color: #000000;">ENGAGEMENTS</a>
<a class="scf_tag_button" data-val="Weddings" style="color: #000000;">WEDDINGS</a>
</span>
Thank you, and have a good day!