Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1411849

    Is it possible to add a link to another website page to a word (or two) in a Special Heading Subheading Text?

    #1411914

    Hey 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,
    Ismael

    #1411923

    Hi 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 heading

    Step 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 link

    Hope this helps.
    If you need further assistance, just let us know.

    Best regards,
    Nikko

    #1411967

    Thanks, I’ll give them a go.

    #1412050

    Step 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 ;)

    #1412071

    Hi Guenni007,

    I apologize for that, here’s the link: https://pastebin.com/63DHYCMT

    Best regards,
    Nikko

    #1412212

    Yes – 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.

    #1412257

    Hi,
    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.