Sunday, January 23rd, 2022

Add button with custom text and URL after Essence Pro entry header on single page

This code enables you to add 1 or 2 buttons after the entry title on a single page using separate text and button links for each button like this:

The display of both buttons assumes that you have added custom fields with values ​​like this:

Buttons are displayed only if the custom field for your custom button text has a value. If no value is added for 1 button, then only 1 button will be displayed like this:

The display of 1 button assumes that you have added custom fields with values ​​like this:

installation

Here is the code you can copy and paste at the end of your Essence Pro theme functions file:

download folder

Buttons will not display until you add a custom field with at least 1 value.

Related Tutorials

reader interaction

Source link