Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #633926

    I want to do the same as this post: https://kriesi.at/support/topic/iconlist-headings-seo/ and make the icon list heading an H3 instead of H4.

    So the solution is still OK I assume (?) but this answer is 3 years old – my question now is: is there a way to implement this change without altering core theme files e.g. I use a child theme, so can I add some code into my child functions.php – or maybe can I copy iconlist.php into my enfold-child directory so that theme updates don’t remove the fix? For instance I have /includes/loop-search.php in my child directory.

    #633963

    Hi zimbo!

    Seems there is no faster / different solution for that, but you can do a child themes support for shortcodes

    If you want to overwrite an existing shortcode create a “shortcodes” folder within the child theme directory, then copy the /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php into the child theme “shortcodes” folder and modify the php code. At least add following code into the child theme functions.php file

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }

    This code will make sure the the shortcode file of the child theme is loaded first and you can overwrite the parent theme slideshow shortcode file with the child theme.

    Cheers!
    Basilis

    #634425

    @Basilis – bit confused why you mention masonry_entries.php? It’s iconlist.php I need to modify – did you misread the filename and does the same principle apply for iconlist?

    #634429
    #634458

    OK, got it, thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Change icon list heading type’ is closed to new replies.