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

    Hi All,

    I have a question, and cannot find a good solution.
    I want to set on all my pages in the EasySlider a H1 and H2 caption.

    However I found that i need te create a child theme, but i dont know how.
    Is there an other possiblity to set a H1 & H2 caption into my easyslider?

    Can someone help me out?

    #1033676

    Hey ZikomoWebdesign,

    Please refer to the following:

    Best regards,
    Jordan Shannon

    #1038238

    Hi Jordan,

    Sorry for the extreme late reaction. I was on a holiday.
    However, i dont understand the link you send me. I dont have a child theme, and i also i cannot find the Enfold child theme.

    Can i just upload those 4 files to the right folders into the normal template folder?

    Please upload all 4 files to your child-themes/shortcodes folder because the av-helper-slideshow.php rules the things for all 3 sliders. If one left original it has a wrong markup.

    So do i need to upload file slideshow_fullsize.php to /public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize
    and
    av-helper-slideshow.php to /public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes
    and so on?

    Hope you understtand me.

    #1040134

    Hi,

    Yes, you need to create a copy of those files in your child theme folder. And then add this code in the functions.php file so that they take priority over the parent shortcode files.

    
    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;
    }
    

    If you don’t have a child theme yet, this should help.

    // https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#why-child-theme

    Best regards,
    Ismael

    #1040193

    so that is the reason why i wrote on that tut:

    so all you have to do is to create a folder called : „shortcodes“ in your child-theme folder
    and upload the downloaded files to that folder

    the code that ismael gave you then makes sure that instead of the original elements they are taken.
    In general, you only have to replace 1:1. The sliders, however, have a central element, which additionally influences all sliders.
    But editing av-helper-slideshow.php these changes also require the new input fields for heading tag in all three sliders, so you can only replace them in the package.

    PS: using a child-theme is best practice for wordpress – with very few exceptions it is unnecessary to use a child theme. The advantages of using a child theme are great and help you to make minor changes yourself and these changes will not be lost on next parent update.
    You see that the child-themes folder of enfold should be a sibling to it ( see folder structure above)

    Enfold got a few features to help you to switch to a child-theme. Beginning with a predefined child-theme ( with at startup an empty child-theme functions.php ).. The functions.php file is a unique file-type in WordPress – because the existance of a child-theme functions.php does not replace the parent file but it adds new content to the existing parent functions.php. ( F.e. the header.php in child-themes folder will completely replace the original parent file).

    After uploading the unzipped child-theme folder to your installation ( bit.ly/enfold-child )
    go first to the enfold dialog : Import/Export – it will be a good advice to have a copy of the parent settings file. After that you can activate the child-theme on Appearance/Themes.
    Now you got on the dashboard : Enfold Child Options – go to import/export and choose : Import Settings from your Parent Theme
    on common this will be the trick.

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