-
AuthorPosts
-
June 27, 2023 at 4:06 pm #1411849
Is it possible to add a link to another website page to a word (or two) in a Special Heading Subheading Text?
June 28, 2023 at 6:02 am #1411914Hey zimbo,
Thank you for the inquiry.
You can manually insert html tags in the Heading Text field.
Example:
<a href="https://kriesi.at">Hello</a> There <a href="https://themeforest.net/category/wordpress?term=enfold">Human!</a>
However, when doing so, please ensure that the Advanced > Link Settings > Header Text Link? is set to “No Link”.
Best regards,
IsmaelJune 28, 2023 at 7:02 am #1411923Hi zimbo,
There’s another option but would require you to use a child theme: https://kriesi.at/documentation/enfold/child-theme/
If you are already use the child theme then please proceed with the instructions below, otherwise, please follow the instructions on the documentation link.Step 1
– Add this code in the child theme’s functions.php file (do not add if this code is already in functions.php):/** * Add filter to add or replace Enfold ALB shortcodes with new folder contents * * Note that the shortcodes must be in the same format as those in * enfold/config-templatebuilder/avia-shortcodes * * @link http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/ * * @param array $paths * @return array */ function avia_include_shortcode_template( $paths ) { if( ! is_array( $paths ) ) { $paths = array(); } $template_url = get_stylesheet_directory(); array_unshift( $paths, $template_url . '/shortcodes/' ); return $paths; } add_filter( 'avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1 );
Step 2
– create a folder called shortcodes inside the child theme, and inside the shortcodes folder, create another folder called headingStep 3
– create a file inside heading’s folder called heading.php and paste the code in private content.Step 4
– Edit Special Heading > Advanced, then open the second Link Settings, and add a linkHope this helps.
If you need further assistance, just let us know.Best regards,
NikkoJune 28, 2023 at 5:01 pm #1411967Thanks, I’ll give them a go.
June 29, 2023 at 10:57 am #1412050Step 3
– create a file inside heading’s folder called heading.php and paste the code in private content.Is there any reason for not make it public? I like to learn from other coding skills ;)
June 29, 2023 at 3:19 pm #1412071Hi Guenni007,
I apologize for that, here’s the link: https://pastebin.com/63DHYCMT
Best regards,
NikkoJuly 1, 2023 at 4:01 pm #1412212Yes – thanks –
That’s what I thought; I offered something like that here for many of the ALB elements; a lot of it was later adopted into the core in discussion with Günter (a little better coded than my skills allowed, of course) – as nice as it is to have it easy at the moment, it’s so time-consuming to check with every new update whether something has changed in the corresponding ALB and features have been added that make it necessary to implement the changes again.
July 2, 2023 at 3:13 pm #1412257Hi,
I would recommend manually adding the link as Ismael suggested but using our Special Character Translation plugin for the less-than & greater-than symbols to avoid the HTML warning in the Special Heading element.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.