Viewing 30 results - 61 through 90 (of 276 total)
  • Author
    Search Results
  • #1168119
    dondela
    Participant

    Dear support,
    i added a custom icon to the social icons like this. The problem is the wrong icon is shown. Is there some error in my code? I want to show the fontello icon ue837 (The feather). You can see the wrong icon (pencil) in the header on the right.

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['icon_name']	 = array( 'font' =>'fontello', 'icon' => 'ue837');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    	$icons['Newsletter'] = 'Newsletter';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    
    #1167243
    thinkjarvis
    Participant

    I was asked to open a new thread:

    Please read all of this – The work around I have suggested is a temporary fix and helps isolate the CSS that is causing the problem.

    The fix file for social media icons missing after wordpress update does not work if you place the social icons in a sidebar widget with open in new window set.
    This is something I do for all of my customers as it removes the need to add a plugin to handle social icons.

    Please can you add this to the fix list?
    This will affect all Enfold Customers not just my own site

    In the meantime, I have only upgraded 1 customer to the latest version of WordPress so I can live with the problem for a few days if necessary.

    WORKAROUND: If you change the shortcode setting to open in same window it works. So something is wrong with the CSS when you add open in new window in the icon shortcode.

    #1157545

    Hi Victoria,

    Thank you for the reaction but this is an external plugin for the WhatsApp social buttons.
    Let me explain it again, the Enfold template where the theme settings are there is a function by the theme itself to add the Whatsapp icon into the Menu.

    This setting can be found in Header > Extra Elements.
    Header Social Icons
    Choose if and where to display social icons. You can define the icons at Social Profiles

    The word “Social Profiles” is clickable which goes to Social Profiles settings in the theme settings.
    In the Dropdown there is the item “WhatsApp” then on the right you can add your number for the Whatsapp.
    The same works for the other items in the dropdown example Facebook and on the right facebook.com/kriesi

    So tell me why do I have to install the plugin in the article even tho there is an option in Enfold itself? Doesn’t this just have to work or maybe there is a bug in the theme that just an update can resolve this? And why did you tell me a few reactions back that I didn’t add my number on the right way? And now you tell me to read the article which advises me to install an extern plugin and modify the whole thing. And on your first reaction, you send me to another thread which has nothing to do with my issue here.
    Maybe one of your colleagues can help me?
    Thank you.

    • This reply was modified 6 years, 4 months ago by peruwan.
    #1142806

    Hi geraldinetay27,

    Those icons are from https://www.flaticon.com/packs
    And to add it you can follow the instructions here: https://kriesi.at/documentation/enfold/icon/#adding-your-own-fontello-or-flaticon-icons-

    The other alternative to that, which I used, is download the specific demo, in this case is ‘knowledgebase’ to my local server, then go to wp-content > uploads > avia_fonts folder, you should see the custom icon’s folder there, just zip it then upload it to your site as specified in the instructions above.

    Best regards,
    Nikko

    #1138417

    Topic: Replacing icons

    in forum Enfold
    patarnold8
    Participant

    Hi,
    None of your icons matches my categories/topics, so it looks a bit amateurish. I am unable to see the link to the alternate set you recommended to another user, so I don’t know if those would fit. Do you mind either sharing that with me or advising whether there’s a way I can create and add my own icons with graphics files?
    Thanks!

    #1134590

    Thank you for the reply.

    This is the page in production https://blgenvironmental.com/home-2019/

    This is the wire frame that the designer provided to rebuild our home page from:
    https://xd.adobe.com/spec/e1478013-3c5e-474e-509c-2cf9ef6ec46a-9776/

    Main Q: For the icon boxes: How do I add numbers instead of image icons.

    Note: I opened up multiple tickets. Can I ask them all on one ticket or is your protocol to open a new ticket for each issue?
    Questions to ask:
    For buttons is there a ray to make them look less rounded? Notice my wireframe document has more square, less rounded buttons?

    Q: are there add-on plugins one can download or purchase to add more functionality to the Avia Layout Builder such as a undo/redo option or more button options?

    Q: Can I tweak the Special heading font family on a case by case circumstance?

    Q: Can I tweak the button font size and face?

    Q: for icons can I adjust the position of icons and verbiage so that the text is aligned to the top of the icons on the horizontal pane? (adding margin-top: -number; did not do the trick for the text)
    https://www.screencast.com/t/vEleLn31o63v

    Q: Does your theme allow for the type of overlay between banner and the next row that the designer is requesting?

    https://www.screencast.com/t/wRVuXGtQzv

    Please advise on the above questions.

    #1123561
    felixfi
    Participant

    Hello Kriesi-Team,

    thanks for following up so fast in this support forum.

    I have a question. With Fontello I made an icon pack and uploaded it to the page, that works fine. When my customer wants to add another icon, normally I would drag and drop the package to the Fontello page, add the new icon and download it again. But can I replace the old icon pack in WordPress? Whats the ideal process in this case? Should I delete the old pack and upload the new one, do I upload and replace it automatically? Of course I don’t want any icons used on the page will be missed.

    Thanks for your answer in advance.

    Best regards

    mynick
    Participant

    Hi Enfold,

    We’ve been using your theme a lot and it’s very good. Thank you!
    After dozens of projects I’d like to share my thoughts with everyone. My goal of this post is to make Enfold even better by letting the devs add more , in my opinion, necessary features and changes:

    It was hard to get some “structure” in this post so the list is in random order. I hope you don’t mind.

    Add scroll to top options
    show on mobile: yes / no
    show on desktop: yes / no

    Add more topbar settings
    show on mobile: yes / no
    stick on mobile: yes / no
    show on desktop: yes / no
    stick on desktop: yes / no

    Add uniform button styling
    Changing the style of buttons should affect all buttons (advanced styling). In lots of projects I need to style the form & slider buttons seperately.

    Add more hover-effects on buttons
    The 1 default hover-effect ( subtly lower opacity ) is not enough. I would like to see at least 10 options just to have more visual control over my projects.

    Add control over slider elements animations
    Let us choose the animations that occur in the sliders ( titles en subtexts )

    Add more slider slide animations
    Add more options besides ‘fade’ and ‘slide’

    Add option to choose the color of the icons in accordeons
    You can change the colors of everything in accordeons, but not the icon.

    Add the option to easily display social media icons in a row.
    Currently I’m using ‘Button Row’ with some CSS tweaks to accomplish this. Maybe give the ‘Button Row’ some different styles like you do with f.e. the accordeon element (accordion:minimal, elegant, … )

    Add more control over blog & portfolio items. Directly in the element let us:
    hide/show date
    hide/show categories
    hide/show tags
    hide/show author
    hide/show title
    hide/show text
    Choose icon for hover-state

    Add use custom page as socket
    ‘use custom page’ as footer and socket is awesome! Even better would be to have a seperate ‘page’ for socket and a seperate page for ‘footer’.
    Just to have more control. Some pages don’t really need a footer.
    This way you can have the option on each page to show: A. Footer & socket (default). B. Footer or C. Socket.

    ADVANCED STYLING section
    Add scroll-to-top styling

    SOCIAL PROFILES section
    Add phone, mail, Whatsapp etc by default and the option to add our own icons very easily.

    Add H-tag control
    Let us choose what H-tag elements use

    Add more catelogue styles
    Just like you did with accordeon (f.e. elegant, minimal, modern, … )
    A must to support more horeca-websites, coffeeshops, …

    Add ratings to testimonials
    Because what’s a testimonial without a nice score or star next to it?

    General:
    Add different styles to loads of elements –> elegant, minimal, modern, …

    I’ll try to add more to this list now and then.

    Please consider adding this list with changes to Enfold over time.

    Regards and thank you again for this awesome theme.

    sonderdesigner
    Participant

    Hi,

    I hope you can help – I’m out of ideas how to solve this problem.
    I switched from http to https so far so good. But all icons are not showing on Chrome and Firefox. Safari looks great.

    I tried following:

    1. import fonatello in Import/Export
    2. add following code in to my htaccess:

    <FilesMatch “.(ttf|otf|woff)$”>
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin “*”
    </IfModule>
    </FilesMatch>

    3.add following code in to my wp-config:

    <?xml version=”1.0″ encoding=”utf-8″?>
    <configuration>
    <system.webServer>
    <httpProtocol>
    <customHeaders>
    <add name=”Access-Control-Allow-Origin” value=”*” ></add>
    </customHeaders>
    </httpProtocol>
    </system.webServer>
    </configuration>

    —> still no changes.

    Interesting was, when I did this yesterday – the icon where shown nicely. But today everything is blogged. I get following error:

    Access to font at ‘https://storchenfreunde.ch/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.woff&#8217; from origin ‘http://storchenfreunde.ch&#8217; has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

    Any ideas???
    Thank you so much.
    _K

    #1110805
    This reply has been marked as private.
    #1106667

    Topic: A few issues

    in forum Enfold
    launchmoxie
    Participant

    Longtime user, I always start my projects with Enfold. Rebuilding a site, having a couple issues.

    Followed your recipe(s) for custom social icons, but they’re mostly appearing blank (in header and footer).

    Here’s my code from functions.php:

    <?php
    
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['icon_mail']	 = array( 'font' =>'fontello', 'icon' => 'ue800');
    	$icons['icon_twitter']	 = array( 'font' =>'fontello', 'icon' => 'ue801');
    	$icons['icon_linkedin']	 = array( 'font' =>'fontello', 'icon' => 'ue802');
    	$icons['icon_instagram']	 = array( 'font' =>'fontello', 'icon' => 'ue803');
    	$icons['icon_facebook_official']	 = array( 'font' =>'fontello', 'icon' => 'ue804');
    	$icons['icon_whatsapp']	 = array( 'font' =>'fontello', 'icon' => 'ue805');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    	$icons['My Email'] = 'icon_mail';
    	$icons['My Twitter'] = 'icon_twitter';
    	$icons['My LinkedIn'] = 'icon_linkedin';
    	$icons['My Instagram'] = 'icon_instagram';
    	$icons['My Facebook'] = 'icon_facebook_official';
    	$icons['My Whatsapp'] = 'icon_whatsapp';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    …and my settings in Enfold:
    Enfold settings

    …and how it appears on my site:
    bad render

    The other problem is with my Blog page at http://dev.burtlo.info/blog/. When I try to add content to my Blog page, which is an actual Page, the content doesn’t appear… I only see a listing of my blog entries. Also odd, when I’m on /blog, and click the “Edit Post” link in the toolbar on top, it edits the first post listed, not my blog page. Lastly, I’m using the Advanced Editor on my blog page, but none of the configurations I make to the Blog block are honored. I must be doing something fundamentally wrong…?

    Also, my logo has some whitespace that overlaps the border lines above and below. It’s easiest to see when a page has scrolled down, but it’s present always. What’s up with that? Here’s an image:
    logo issue

    Lastly, there was some weirdness when trying to edit my homepage, where the Advanced Editor kept wiping out the content. It’s a simple page, and I don’t have many plugins. I turned off caching, tried various things, but I ended up reverting to the Classic Editor. You can see the weirdness if you browse the revisions on the page. I didn’t find any mention of that while googling, but can you think of what going on?

    I appreciate your help! Thank you.

    –Burt

    #1095307
    chrishilli
    Participant

    Hello!

    The Whatsapp button in the social share blog posts stopped working.
    It now opens a new page instead of sharing to whatsapp.

    My functions.php from the child theme is:

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    
    // Register new icon as a theme icon
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    function avia_add_custom_icon($icons) {
    	$icons['whatsapp']	 = array( 'font' =>'whatsapp-font-icon', 'icon' => 'ue800');
    	return $icons;
    }
    
    //Adjust icons
    add_filter('avia_filter_social_icons', 'avia_filter_social_icons_mod', 10, 1);
    function avia_filter_social_icons_mod($icons) {
    	$icons['Whatsapp'] = 'whatsapp';
    	return $icons;
    }
    
    //Add items on the social share section
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    	$args['whatsapp'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "whatsapp://send?text=[title]&url=[permalink]", 'label' => __("Auf Whatsapp teilen",'avia_framework'));
    	return $args;
    }

    Regards

    Chris

    I wanted to update with the latest since it has been two days and you typically respond at night my time.

    1. On the homepage, how do I add more space between the four sections of EPX Edge, New Payments Hub and Quick Funding and 24/7 Support? (IMAGE 2)

    View post on imgur.com

    2. How do I remove the blue outline and line down the center of the Green background box of pages as shown in this image? I have no clue where it’s picking up the blue line from as I made the box a cell in the widget footer.

    View post on imgur.com

    3. On the mobile menu, per the image. How do I make the submenu arrow down more black so that the user knows to click on it? I circled the area I’m talking about. Also where exactly would I change the blue background to another Hex color? https://imgur.com/a/LbzR1F5

    4. On mobile, how do I fix the formatting of the word GET that should start below the image and should be on the same line as MORE FOR LESS?

    View post on imgur.com

    5. How do I make the Rev. Slider slides format correctly in mobile view? As you can see from these examples, they are cut off and or too small to read. In desktop view they are perfect.

    6. How do I make the mobile menu appear to the right of the social media icons? It currently is showing the logo to the left which is correct, then the menu and social media icons. I need Logo left as it is set, social media icons then mobile menu to the far right. https://imgur.com/a/ldYtFY9

    7. Please see private image link in Private Content below. Need to add space between phone icon and # and horizontal center the # to the Phone icon.

    8. Please see private link content as to why certain pages menu and phone number are BOLD and some are not per the screenshot. Main Menu fonts are not bold for reference.

    Thanks!

    • This reply was modified 6 years, 11 months ago by webguy007.
    #1093434
    annameis
    Participant

    Hi – I have used added this code to my function.php file to add social icons to flyout mobile menu – which it did- but I want the icons lined up horizontally across the bottom of the flout menu. I’ve tried several code snippets but am not having any luck. I am using the latest version of Enfold. Thanks of any help you can give! Anna

    // add social icons inside the mobile menu
    function ava_custom_script_mod_social(){
    ?>
    <script>
    (function($){
    var int = ”;
    function a() {
    var isMobile = $(‘.av-burger-menu-main’).css(‘display’),
    htmlString = $(‘#header_main .social_bookmarks’).find(‘li a’),
    mobileMenu = $(‘.av-burger-overlay’),
    socialString = [];

    if(isMobile == ‘none’) return;
    if($(‘.burger-social’).length) clearInterval(int);

    htmlString.each(function() {
    var socialClass = $(this).parent(‘li’).attr(‘class’),
    socialItems = $(this).wrap(‘<li class=”‘+ socialClass + ‘ av-active-burger-items burger-social”></div>’).parent().unwrap();
    socialString.push(socialItems);
    });

    $(socialString).each(function() {
    $(this).prependTo(‘#av-burger-menu-ul’);
    });
    }

    $(‘#header’).on(‘mousedown’, ‘.av-main-nav-wrap’, function() {
    int = setInterval(function() {
    a();
    }, 500);
    });

    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘ava_custom_script_mod_social’);

    #1090850

    ps – thanks for incorporating – make photos black and white – yay

    now please just
    – put avia icons in alphabetical order
    – add an option to NEVER open new edit windows
    – make default white space pop-up have all options as radio buttons (so much space! – why drop down)

    oh … and make the theme WORK AGAIN

    thank you

    check my enfold site at allaboutit.marketing – awesome theme – when it WORKED – i cant edit! :p

    • This reply was modified 6 years, 11 months ago by jamiegrant.
    #1070365

    Hi,
    just one more question. In this page http://www.fairwindsdigital.it/technology/ I have a row with icons with tooltip.
    i woult like to use/add my own icons. is it possible? How can I do for adding my own icons?

    Thank you
    Marco

    #1041024
    hellomerilou
    Participant

    Hi!

    Right now my mobile menu’s social media icons are lined up vertically in a row. I would like to line them up horizontally in one or two rows and make them much smaller. How can i do this?

    The current code that i used to add the icons to the burger menu is in functions.php:

    // add social icons inside the mobile menu
    function ava_custom_script_mod_social(){
    ?>
    <script>
    (function($){
    var int = ”;
    function a() {
    var isMobile = $(‘.av-burger-menu-main’).css(‘display’),
    htmlString = $(‘#header_main .social_bookmarks’).find(‘li a’),
    mobileMenu = $(‘.av-burger-overlay’),
    socialString = [];

    if(isMobile == ‘none’) return;
    if($(‘.burger-social’).length) clearInterval(int);

    htmlString.each(function() {
    var socialClass = $(this).parent(‘li’).attr(‘class’),
    socialItems = $(this).wrap(‘<li class=”‘+ socialClass + ‘ av-active-burger-items burger-social”></div>’).parent().unwrap();
    socialString.push(socialItems);
    });

    $(socialString).each(function() {
    $(this).prependTo(‘#av-burger-menu-ul’);
    });
    }

    $(‘#header’).on(‘mousedown’, ‘.av-main-nav-wrap’, function() {
    int = setInterval(function() {
    a();
    }, 500);
    });

    })(jQuery);
    </script>

    #1022977

    Aha, ok, sorry here comes the functions.php file
    <?php

    /**
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    *
    * Remove the comments before or around the sample functions and code to use theme.
    * @link http://kriesi.at/documentation/enfold/using-a-child-theme/
    */

    /**
    * 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/
    */

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

    /**
    * Turn on Custom CSS Class field for all Avia Layout Builder elements
    * @link http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
    */
    //add_theme_support(‘avia_template_builder_custom_css’);

    /**
    * Remove the Import dummy data button from theme options
    * @link http://kriesi.at/documentation/enfold/remove-the-import-dummy-data-button/
    */
    //add_theme_support(‘avia_disable_dummy_import’);

    /**
    * Enable Avia Layout Builder Debug
    * @link http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
    */
    add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug() {
    return “debug”;
    }

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Prata’] = ‘Prata:400’;
    $fonts[‘Francois One’] = ‘Francois One:400’;
    $fonts[‘Open Sans’] = ‘Open Sans:300,400,600,700’;
    $fonts[‘Alegreya’] = ‘Alegreya:400,700’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Prata’] = ‘Prata:400’;
    $fonts[‘Francois One’] = ‘Francois One:400’;
    $fonts[‘Open Sans’] = ‘Open Sans:300,400,600,700’;
    $fonts[‘Alegreya’] = ‘Alegreya:400,700’;
    return $fonts;
    }

    add_filter(“kriesi_backlink”,”new_nolink”);
    function new_nolink(){
    $kriesi_at_backlink = “”;
    return $kriesi_at_backlink;
    }

    add_filter( ‘avf_modify_thumb_size’, ‘enfold_customization_modify_thumb_size’, 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
    $size[‘masonry’] = array(‘width’=>1500, ‘height’=>250);
    $size[‘entry_without_sidebar’] = array(‘width’=>1210, ‘height’=>1210 , ‘crop’ => false);
    return $size;
    }

    function av_title_sc( ){
    $output = “<h1 class=’page-title’>”. get_the_title() .”</h1>”;
    return $output;
    }
    add_shortcode( ‘av_page_title’, ‘av_title_sc’ );

    function av_author_sc(){
    $current_user = wp_get_current_user();
    $output = “<h6 class=’ra-author’>AN ARTICLE BY ” . $current_user->user_firstname . “</h6>”;
    return $output;
    }
    add_shortcode(‘av_author’,’av_author_sc’);

    function av_excerpt( ){
    $excerpt = get_the_excerpt( $post );
    $output = “<span class=’related-excerpt’>”.$excerpt.”</span>”;
    return $output;
    }
    add_shortcode( ‘av_post_exc’, ‘av_excerpt’ );

    function avia_post_created(){
    $output = “<span class=’post-date’>”. get_the_date( $format, $post_id ) .”</span>”;
    return $output;
    }
    add_shortcode( ‘avia_created’, ‘avia_post_created’ );

    add_action( ‘after_setup_theme’, ‘ava_enfold_builder_layout_mod’ );
    function ava_enfold_builder_layout_mod(){
    add_filter(‘avf_builder_elements’, ‘avf_enfold_builder_layout_settings_mod’);
    }

    function avf_enfold_builder_layout_settings_mod($elements)
    {
    $counter = 0;
    foreach($elements as $element)
    {

    // Layout > Header visibility and transparency
    if($element[‘id’] == ‘header_transparency’) {
    /**
    *
    * Available Options
    * No transparency =
    * Transparent Header = ‘header_transparent’
    * Transparent Header with border = ‘header_transparent header_with_border’
    * Transparent & Glassy Header = ‘header_transparent header_glassy ‘
    * Header is invisible and appears once the users scrolls down = ‘header_transparent header_scrolldown ‘
    * Hide Header on this page = ‘header_transparent header_hidden ‘
    * MOD: Set the Layout > Header visibility and transparency settings to “Hide both”Header is invisible and appears once the users scrolls down”
    *
    **/
    $elements[$counter][‘std’] = ‘header_transparent’;
    }

    $counter++;
    }
    return $elements;
    }

    function av_single_fo(){
    ?>
    <script>
    var header = jQuery(“.single-post #main .avia-section .content”);
    jQuery(window).scroll(function() {
    var scroll = jQuery(window).scrollTop();

    if (scroll >= 250) {
    header.addClass(“single-header”);
    } else {
    header.removeClass(“single-header”);
    }
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘av_single_fo’);

    add_filter( ‘style_loader_src’, ‘t5_remove_version’ );
    add_filter( ‘script_loader_src’, ‘t5_remove_version’ );

    function t5_remove_version( $url )
    {
    return remove_query_arg( ‘ver’, $url );
    }

    function raboff_custom_checkbox(){
    ?>
    <script>

    jQuery(window).load(function(){
    jQuery(‘h2.avia-caption-title’).after(‘<p class=”close-caption”> </p>’);
    jQuery( “.close-caption”).click(function() {
    var closeTheCap = jQuery(this).closest(“.slideshow_align_caption”);
    closeTheCap.hide(“slow”);
    });
    });

    jQuery(window).scroll(function(){
    var numberNotChecked = jQuery(‘fieldset.alacarte-form input:checkbox:not(“:checked”)’).length;
    console.log(numberNotChecked, “Hello, world!”);

    if (numberNotChecked >= 16) {
    jQuery(“.one-day”).addClass(“p-highlight”);
    }
    else {
    jQuery(“.one-day”).removeClass(“p-highlight”);
    }

    if (numberNotChecked <= 15 && numberNotChecked >= 8 ) {
    jQuery(“.two-day”).addClass(“p-highlight”);
    }
    else {
    jQuery(“.two-day”).removeClass(“p-highlight”);
    }

    if (numberNotChecked <= 7 ) {
    jQuery(“.three-day”).addClass(“p-highlight”);
    }
    else {
    jQuery(“.three-day”).removeClass(“p-highlight”);
    }

    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘raboff_custom_checkbox’);

    function avia_add_custom_social_icon($icons) {
    $icons[‘Turning Torso’] = ‘turning_torso’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    #1006650

    Hi Victoria Ismael in August 7, 2017 he wrote

    
    // add social icons inside the mobile menu
    function ava_custom_script_mod_social(){
    ?>
    <script>
    (function($){
    	var int = '';
    	function a() {
    		var isMobile	 = $('.av-burger-menu-main').css('display'),
    			htmlString   = $('#header_main .social_bookmarks').find('li a'),
    			mobileMenu   = $('.av-burger-overlay'),
    			socialString = [];
    
    			if(isMobile == 'none') return;
    			if($('.burger-social').length) clearInterval(int);
    
    			htmlString.each(function() {
    				var socialClass	= $(this).parent('li').attr('class'),
    						socialItems = $(this).wrap('<li class="'+ socialClass + ' av-active-burger-items burger-social"></div>').parent().unwrap();
    				socialString.push(socialItems);
    			});
    
    			$(socialString).each(function() {
    				$(this).prependTo('#av-burger-menu-ul');
    			});
    	}
    
    	$('#header').on('mousedown', '.av-main-nav-wrap', function() {
    		int = setInterval(function() {
    			a();
    		}, 500);
    	});
    
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod_social');
    

    I tried to insert the following code proposed by Ismael in the function.php file of the template but the icons are not displayed, or rather if I try to update the page they totally disappear. Is it possible that I’m wrong, but can you give me a hand? Where am I wrong???
    It is possible to insert images before the menu items???ho provato con il mega menu ma con esito negativo

    my site is : http://www.stilecatalini.it

    Thanks in advance to those who can help me

    #1005097

    In reply to: Http error 500

    Hi Victora,
    See below:

    <?php
    //Tried both with and without added enqueing code. Seemed not to make a difference #SG;
    //#SG: Enqueuing the parent theme stylesheet;
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_child_theme_styles’, PHP_INT_MAX);
    function enqueue_child_theme_styles() {
    wp_enqueue_style( ‘avia-style’, get_template_directory_uri().’/style.css’ );
    }
    // #SG: Enqueuing the parent theme CSS;
    function my_theme_enqueue_styles() {

    $parent_style = ‘avia-style’; // This is ‘avia-style’ for the Enfold theme.

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    // Added by #SG for Eliminate render-blocking JavaScript and CSS in above-the-fold content
    function my_init()
    {
    if (!is_admin())
    {
    wp_deregister_script(‘jquery’);

    // Load a copy of jQuery from the Google API CDN
    // The last parameter set to TRUE states that it should be loaded
    // in the footer.
    wp_register_script(‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js&#8217;, FALSE, ‘1.11.0’, TRUE);

    wp_enqueue_script(‘jquery’);
    }
    }
    add_action(‘init’, ‘my_init’);
    //End of added code by #SG

    if ( !defined(‘ABSPATH’) ){ die(); }

    global $avia_config;

    /*
    /*
    * if you run a child theme and dont want to load the default functions.php file
    * set the global var below in you childthemes function.php to true:
    *
    * example: global $avia_config; $avia_config[‘use_child_theme_functions_only’] = true;
    * The default functions.php file will then no longer be loaded. You need to make sure then
    * to include framework and functions that you want to use by yourself.
    *
    * This is only recommended for advanced users
    */

    if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    /*
    * create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate posts
    */

    $avia_config[‘posts_on_current_page’] = array();

    /*
    * wpml multi site config file
    * needs to be loaded before the framework
    */

    require_once( ‘config-wpml/config.php’ );

    /**
    * layerslider plugin – needs to be loaded before framework because we need to add data to the options array
    *
    * To be backwards compatible we still support add_theme_support(‘deactivate_layerslider’);
    * This will override the option setting “activation” of the bundled plugin !!
    *
    * @since 4.2.1
    */

    /*DEACTIVATED by #SG (Remove this line to activate)
    require_once( ‘config-layerslider/config.php’ );

    /*
    * These are the available color sets in your backend.
    * If more sets are added users will be able to create additional color schemes for certain areas
    *
    * The array key has to be the class name, the value is only used as tab heading on the styling page
    */

    $avia_config[‘color_sets’] = array(
    ‘header_color’ => ‘Logo Area’,
    ‘main_color’ => ‘Main Content’,
    ‘alternate_color’ => ‘Alternate Content’,
    ‘footer_color’ => ‘Footer’,
    ‘socket_color’ => ‘Socket’
    );

    /*
    * add support for responsive mega menus
    */

    add_theme_support(‘avia_mega_menu’);

    /*
    * add support for improved backend styling
    */

    add_theme_support(‘avia_improved_backend_style’);

    /*
    * deactivates the default mega menu and allows us to pass individual menu walkers when calling a menu
    */

    add_filter(‘avia_mega_menu_walker’, ‘__return_false’);

    /*
    * adds support for the new avia sidebar manager
    */

    add_theme_support(‘avia_sidebar_manager’);

    /*
    * Filters for post formats etc
    */
    //add_theme_support(‘avia_queryfilter’);

    /*
    * Register theme text domain
    */
    if(!function_exists(‘avia_lang_setup’))
    {
    add_action(‘after_setup_theme’, ‘avia_lang_setup’);

    function avia_lang_setup()
    {
    $lang = apply_filters(‘ava_theme_textdomain_path’, get_template_directory() . ‘/lang’);
    load_theme_textdomain(‘avia_framework’, $lang);
    }

    avia_lang_setup();
    }

    /*
    function that changes the icon of the theme update tab
    */

    if(!function_exists(‘avia_theme_update_filter’))
    {
    function avia_theme_update_filter( $data )
    {
    if(current_theme_supports(‘avia_improved_backend_style’))
    {
    $data[‘icon’] = (Email address hidden if logged out) ‘;
    }
    return $data;
    }

    add_filter(‘avf_update_theme_tab’, ‘avia_theme_update_filter’, 30, 1);
    }

    ##################################################################
    # AVIA FRAMEWORK by Kriesi

    # this include calls a file that automatically includes all
    # the files within the folder framework and therefore makes
    # all functions and classes available for later use

    require_once( ‘framework/avia_framework.php’ );

    ##################################################################

    /*
    * Register additional image thumbnail sizes
    * Those thumbnails are generated on image upload!
    *
    * If the size of an array was changed after an image was uploaded you either need to re-upload the image
    * or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
    */

    $avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
    $avia_config[‘imgSize’][‘square’] = array(‘width’=>180, ‘height’=>180); // small image for blogs
    $avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>430 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘featured_large’] = array(‘width’=>1500, ‘height’=>630 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘extra_large’] = array(‘width’=>1500, ‘height’=>1500 , ‘crop’ => false); // images for fullscrren slider
    $avia_config[‘imgSize’][‘portfolio’] = array(‘width’=>495, ‘height’=>400 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘portfolio_small’] = array(‘width’=>260, ‘height’=>185 ); // images for portfolio 4 columns
    $avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘magazine’] = array(‘width’=>710, ‘height’=>375 ); // images for magazines
    $avia_config[‘imgSize’][‘masonry’] = array(‘width’=>705, ‘height’=>705 , ‘crop’ => false); // images for fullscreen masonry
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
    $avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’] = apply_filters(‘avf_modify_thumb_size’, $avia_config[‘imgSize’]);

    $avia_config[‘selectableImgSize’] = array(
    ‘square’ => __(‘Square’,’avia_framework’),
    ‘featured’ => __(‘Featured Thin’,’avia_framework’),
    ‘featured_large’ => __(‘Featured Large’,’avia_framework’),
    ‘portfolio’ => __(‘Portfolio’,’avia_framework’),
    ‘gallery’ => __(‘Gallery’,’avia_framework’),
    ‘entry_with_sidebar’ => __(‘Entry with Sidebar’,’avia_framework’),
    ‘entry_without_sidebar’ => __(‘Entry without Sidebar’,’avia_framework’),
    ‘extra_large’ => __(‘Fullscreen Sections/Sliders’,’avia_framework’),

    );

    avia_backend_add_thumbnail_size($avia_config);

    if ( ! isset( $content_width ) ) $content_width = $avia_config[‘imgSize’][‘featured’][‘width’];

    /*
    * register the layout classes
    *
    */

    $avia_config[‘layout’][‘fullsize’] = array(‘content’ => ‘av-content-full alpha’, ‘sidebar’ => ‘hidden’, ‘meta’ => ”,’entry’ => ”);
    $avia_config[‘layout’][‘sidebar_left’] = array(‘content’ => ‘av-content-small’, ‘sidebar’ => ‘alpha’ ,’meta’ => ‘alpha’, ‘entry’ => ”);
    $avia_config[‘layout’][‘sidebar_right’] = array(‘content’ => ‘av-content-small alpha’,’sidebar’ => ‘alpha’, ‘meta’ => ‘alpha’, ‘entry’ => ‘alpha’);

    /*
    * These are some of the font icons used in the theme, defined by the entypo icon font. the font files are included by the new aviaBuilder
    * common icons are stored here for easy retrieval
    */

    $avia_config[‘font_icons’] = apply_filters(‘avf_default_icons’, array(

    //post formats + types
    ‘standard’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue836’),
    ‘link’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue822’),
    ‘image’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80f’),
    ‘audio’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue801’),
    ‘quote’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue833’),
    ‘gallery’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80e’),
    ‘video’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80d’),
    ‘portfolio’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue849’),
    ‘product’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’),

    //social
    ‘behance’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue915’),
    ‘dribbble’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fe’),
    ‘facebook’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f3’),
    ‘flickr’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8ed’),
    ‘gplus’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f6’),
    ‘linkedin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fc’),
    ‘instagram’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue909’),
    ‘pinterest’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f8’),
    ‘skype’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue90d’),
    ‘tumblr’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fa’),
    ‘twitter’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f1’),
    ‘vimeo’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8ef’),
    ‘rss’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue853’),
    ‘youtube’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue921’),
    ‘xing’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue923’),
    ‘soundcloud’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue913’),
    ‘five_100_px’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue91d’),
    ‘vk’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue926’),
    ‘reddit’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue927’),
    ‘digg’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue928’),
    ‘delicious’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue929’),
    ‘mail’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue805’),

    //woocomemrce
    ‘cart’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’),
    ‘details’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue84b’),

    //bbpress
    ‘supersticky’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue808’),
    ‘sticky’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue809’),
    ‘one_voice’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue83b’),
    ‘multi_voice’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue83c’),
    ‘closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue824’),
    ‘sticky_closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue808\ue824’),
    ‘supersticky_closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue809\ue824’),

    //navigation, slider & controls
    ‘play’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue897’),
    ‘pause’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue899’),
    ‘next’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue879’),
    ‘prev’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue878’),
    ‘next_big’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue87d’),
    ‘prev_big’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue87c’),
    ‘close’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue814’),
    ‘reload’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue891’),
    ‘mobile_menu’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8a5’),

    //image hover overlays
    ‘ov_external’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue832’),
    ‘ov_image’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue869’),
    ‘ov_video’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue897’),

    //misc
    ‘search’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue803’),
    ‘info’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue81e’),
    ‘clipboard’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8d1’),
    ‘scrolltop’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue876’),
    ‘scrolldown’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue877’),
    ‘bitcoin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue92a’),

    ));

    /*
    * a small array that contains admin notices that can, for example, be called after an update
    * just set the db option avia_admin_notice to contain the key of the notice you want to display
    * eg: update_option(‘avia_admin_notice’, ‘performance_update’);
    *
    * classes: error, warning, success, info
    * msg: whatever floats your boat :D
    */

    $avia_config[‘admin_notices’] = array(

    //default update success
    ‘update_success’ => array(‘class’=>’success’, ‘msg’ => __(‘Enfold update was successful! ‘,’avia_framework’)),

    //update to version 4.3 – performance update. display notice and link to blog post
    ‘performance_update’ => array(‘class’=>’info’, ‘msg’ => “Attention: The last Enfold update added a lot of performance options. Make sure to read more about it here<br><br>If you are running a caching plugin please make sure to reset your cached files, since the CSS and JS file structure of the theme changed heavily”
    ),

    //update to version 4.4 – gdpr update. display notice and link to blog post
    ‘gdpr_update’ => array(‘class’=>’info’, ‘msg’ => “Attention: Enfold was updated for GDPR compliance. Make sure to read more about it here
    ),

    //more to come…
    );

    add_theme_support( ‘automatic-feed-links’ );

    ##################################################################
    # Frontend Stuff necessary for the theme:
    ##################################################################

    /*
    * Register frontend javascripts:
    */

    if(!function_exists(‘avia_register_frontend_scripts’))
    {
    if(!is_admin()){
    add_action(‘wp_enqueue_scripts’, ‘avia_register_frontend_scripts’);
    }

    function avia_register_frontend_scripts()
    {
    global $avia_config;

    $theme = wp_get_theme();
    if( false !== $theme->parent() )
    {
    $theme = $theme->parent();
    }
    $vn = $theme->get( ‘Version’ );

    $options = avia_get_option();

    $template_url = get_template_directory_uri();
    $child_theme_url = get_stylesheet_directory_uri();

    //register js

    wp_enqueue_script( ‘avia-compat’, $template_url.’/js/avia-compat.js’ , array(), $vn, false ); //needs to be loaded at the top to prevent bugs
    wp_enqueue_script( ‘avia-default’, $template_url.’/js/avia.js’, array(‘jquery’), $vn, true );
    wp_enqueue_script( ‘avia-shortcodes’, $template_url.’/js/shortcodes.js’, array(‘jquery’,’avia-default’), $vn, true );

    wp_enqueue_script( ‘jquery’ );

    //register styles

    wp_register_style( ‘avia-style’ , $child_theme_url.”/style.css”, array(), $vn, ‘all’ ); //only include in childthemes. has no purpose in main theme
    wp_register_style( ‘avia-custom’, $template_url.”/css/custom.css”, array(), $vn, ‘all’ );

    wp_enqueue_style( ‘avia-grid’ , $template_url.”/css/grid.css”, array(), $vn, ‘all’ );
    wp_enqueue_style( ‘avia-base’ , $template_url.”/css/base.css”, array(‘avia-grid’), $vn, ‘all’ );
    wp_enqueue_style( ‘avia-layout’, $template_url.”/css/layout.css”, array(‘avia-base’), $vn, ‘all’ );
    wp_enqueue_style( ‘avia-scs’, $template_url.”/css/shortcodes.css”, array(‘avia-layout’), $vn, ‘all’ );

    /************************************************************************
    Conditional style and script calling, based on theme options or other conditions
    *************************************************************************/

    //lightbox inclusion

    $condition = !empty($avia_config[‘use_standard_lightbox’]) && ( ‘disabled’ != $avia_config[‘use_standard_lightbox’] );
    avia_enqueue_style_conditionally( $condition , ‘avia-popup-css’, $template_url.”/js/aviapopup/magnific-popup.css”, array(‘avia-layout’), $vn, ‘screen’);
    avia_enqueue_style_conditionally( $condition , ‘avia-lightbox’, $template_url.”/css/avia-snippet-lightbox.css”, array(‘avia-layout’), $vn, ‘screen’);
    avia_enqueue_script_conditionally( $condition , ‘avia-popup-js’ , $template_url.’/js/aviapopup/jquery.magnific-popup.min.js’, array(‘jquery’), $vn, true);
    avia_enqueue_script_conditionally( $condition , ‘avia-lightbox-activation’, $template_url.”/js/avia-snippet-lightbox.js”, array(‘avia-default’), $vn, true);

    //mega menu inclusion (only necessary with sub menu items)

    $condition = (avia_get_submenu_count(‘avia’) > 0);
    avia_enqueue_script_conditionally( $condition , ‘avia-megamenu’, $template_url.”/js/avia-snippet-megamenu.js”, array(‘avia-default’), $vn, true);

    //sidebar menu inclusion (only necessary when header position is set to be a sidebar)

    $condition = (isset($options[‘header_position’]) && $options[‘header_position’] != “header_top”);
    avia_enqueue_script_conditionally( $condition , ‘avia-sidebarmenu’, $template_url.”/js/avia-snippet-sidebarmenu.js”, array(‘avia-default’), $vn, true);

    //sticky header with header size calculator

    $condition = (isset($options[‘header_position’]) && $options[‘header_position’] == “header_top”);
    $condition2 = (isset($options[‘header_sticky’]) && $options[‘header_sticky’] == “header_sticky”) && $condition;
    avia_enqueue_script_conditionally( $condition2 , ‘avia-sticky-header’, $template_url.”/js/avia-snippet-sticky-header.js”, array(‘avia-default’), $vn, true);

    //site preloader

    $condition = (isset($options[‘preloader’]) && $options[‘preloader’] == “preloader”);
    avia_enqueue_script_conditionally( $condition , ‘avia-siteloader-js’, $template_url.”/js/avia-snippet-site-preloader.js”, array(‘avia-default’), $vn, true, false);
    avia_enqueue_style_conditionally( $condition , ‘avia-siteloader’, $template_url.”/css/avia-snippet-site-preloader.css”, array(‘avia-layout’), $vn, ‘screen’, false);

    //cookie consent

    $condition = (isset($options[‘cookie_consent’]) && $options[‘cookie_consent’] == “cookie_consent”);
    avia_enqueue_script_conditionally( $condition , ‘avia-cookie-js’ , $template_url.”/js/avia-snippet-cookieconsent.js”, array(‘avia-default’), $vn, true);
    avia_enqueue_style_conditionally( $condition , ‘avia-cookie-css’, $template_url.”/css/avia-snippet-cookieconsent.css”, array(‘avia-layout’), $vn, ‘screen’);

    //load widget css only if we got active widgets

    $condition = (avia_get_active_widget_count() > 0);
    avia_enqueue_style_conditionally( $condition , ‘avia-widget-css’, $template_url.”/css/avia-snippet-widget.css”, array(‘avia-layout’), $vn, ‘screen’);

    //load mediaelement js

    $condition = !( isset($options[‘disable_mediaelement’]) && $options[‘disable_mediaelement’] == “disable_mediaelement” ) && av_video_assets_required();
    $condition2 = ( version_compare( get_bloginfo( ‘version’ ), ‘4.9’, ‘>=’ ) ) && $condition;
    avia_enqueue_script_conditionally( $condition , ‘wp-mediaelement’);
    avia_enqueue_style_conditionally( $condition2 , ‘wp-mediaelement’); //With WP 4.9 we need to load the stylesheet seperately

    //comment reply script

    global $post;
    $condition = !( isset($options[‘disable_blog’]) && $options[‘disable_blog’] == “disable_blog” ) && $post && comments_open();
    $condition = ( is_singular() && get_option( ‘thread_comments’ ) ) && $condition;
    avia_enqueue_script_conditionally( $condition , ‘comment-reply’);

    //rtl inclusion

    avia_enqueue_style_conditionally( is_rtl() , ‘avia-rtl’, $template_url.”/css/rtl.css”, array(), $vn, ‘all’);

    //disable jquery migrate if no plugins are active (enfold does not need it) or if user asked for it in optimization options

    $condition = avia_count_active_plugins() == 0 || (isset($options[‘disable_jq_migrate’]) && $options[‘disable_jq_migrate’] != “disable_jq_migrate”);
    if(!$condition) avia_disable_query_migrate();

    //move jquery to footer if no unkown plugins are active

    if(av_count_untested_plugins() == 0 || (isset($options[‘jquery_in_footer’]) && $options[‘jquery_in_footer’] == “jquery_in_footer”) ){
    av_move_jquery_into_footer();
    }

    /************************************************************************
    Inclusion of the dynamic stylesheet
    *************************************************************************/

    global $avia;

    $safe_name = avia_backend_safe_string($avia->base_data[‘prefix’]);
    $safe_name = apply_filters(‘avf_dynamic_stylesheet_filename’, $safe_name);

    if( get_option(‘avia_stylesheet_exists’.$safe_name) == ‘true’ )
    {
    $avia_upload_dir = wp_upload_dir();

    /**
    * Change the default dynamic upload url
    *
    * @since 4.4
    */

    $avia_dyn_upload_path = apply_filters(‘avf_dyn_stylesheet_dir_url’, $avia_upload_dir[‘baseurl’] . ‘/dynamic_avia’ );
    $avia_dyn_upload_path = trailingslashit( $avia_dyn_upload_path );

    if( is_ssl() )
    {
    $avia_dyn_upload_path = str_replace( “http://&#8221;, “https://&#8221;, $avia_dyn_upload_path );
    }

    /**
    * Change the default dynamic stylesheet name
    *
    * @since 4.4
    */

    $avia_dyn_stylesheet_url = apply_filters( ‘avf_dyn_stylesheet_file_url’, $avia_dyn_upload_path . $safe_name . ‘.css’ );

    $version_number = get_option( ‘avia_stylesheet_dynamic_version’ . $safe_name );
    if( empty( $version_number ) )
    {
    $version_number = $vn;
    }

    wp_enqueue_style( ‘avia-dynamic’, $avia_dyn_stylesheet_url, array(), $version_number, ‘all’ );
    }

    wp_enqueue_style( ‘avia-custom’);

    if($child_theme_url != $template_url)
    {
    wp_enqueue_style( ‘avia-style’);
    }

    }
    }

    if(!function_exists(‘avia_remove_default_video_styling’))
    {
    if(!is_admin()){
    add_action(‘wp_footer’, ‘avia_remove_default_video_styling’, 1);
    }

    function avia_remove_default_video_styling()
    {
    /**
    * remove default style for videos
    *
    * With WP 4.9 we need to load the stylesheet seperately – therefore we must not remove it
    */

    if( version_compare( get_bloginfo( ‘version’ ), ‘4.9’, ‘<‘ ) )
    {
    wp_dequeue_style( ‘mediaelement’ );
    }

    // wp_dequeue_script( ‘wp-mediaelement’ );
    // wp_dequeue_style( ‘wp-mediaelement’ );
    }
    }

    /*
    * Activate native wordpress navigation menu and register a menu location
    */

    if(!function_exists(‘avia_nav_menus’))
    {
    function avia_nav_menus()
    {
    global $avia_config, $wp_customize;

    add_theme_support(‘nav_menus’);

    foreach($avia_config[‘nav_menus’] as $key => $value)
    {
    //wp-admin\customize.php does not support html code in the menu description – thus we need to strip it
    $name = (!empty($value[‘plain’]) && !empty($wp_customize)) ? $value[‘plain’] : $value[‘html’];
    register_nav_menu($key, THEMENAME.’ ‘.$name);
    }
    }

    $avia_config[‘nav_menus’] = array( ‘avia’ => array(‘html’ => __(‘Main Menu’, ‘avia_framework’)),
    ‘avia2’ => array(
    ‘html’ => ”.__(‘Secondary Menu’, ‘avia_framework’).’ <br/><small>(‘.__(‘Will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’).’ ‘.__(‘here’, ‘avia_framework’).’)</small>’,
    ‘plain’=> __(‘Secondary Menu – will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’)),
    ‘avia3’ => array(
    ‘html’ => __(‘Footer Menu <br/><small>(no dropdowns)</small>’, ‘avia_framework’),
    ‘plain’=> __(‘Footer Menu (no dropdowns)’, ‘avia_framework’))
    );

    avia_nav_menus(); //call the function immediatly to activate
    }

    /*
    * load some frontend functions in folder include:
    */

    require_once( ‘includes/admin/register-portfolio.php’ ); // register custom post types for portfolio entries
    require_once( ‘includes/admin/register-widget-area.php’ ); // register sidebar widgets for the sidebar and footer
    require_once( ‘includes/loop-comments.php’ ); // necessary to display the comments properly
    require_once( ‘includes/helper-template-logic.php’ ); // holds the template logic so the theme knows which tempaltes to use
    require_once( ‘includes/helper-social-media.php’ ); // holds some helper functions necessary for twitter and facebook buttons
    require_once( ‘includes/helper-post-format.php’ ); // holds actions and filter necessary for post formats
    require_once( ‘includes/helper-markup.php’ ); // holds the markup logic (schema.org and html5)
    require_once( ‘includes/helper-assets.php’ ); // holds asset managment functions
    require_once( ‘includes/helper-privacy.php’ ); // holds privacy managment shortcodes and functions

    if(current_theme_supports(‘avia_conditionals_for_mega_menu’))
    {
    require_once( ‘includes/helper-conditional-megamenu.php’ ); // holds the walker for the responsive mega menu
    }

    require_once( ‘includes/helper-responsive-megamenu.php’ ); // holds the walker for the responsive mega menu

    //adds the plugin initalization scripts that add styles and functions

    require_once( ‘config-bbpress/config.php’ ); //compatibility with bbpress forum plugin
    require_once( ‘config-templatebuilder/config.php’ ); //templatebuilder plugin
    require_once( ‘config-gravityforms/config.php’ ); //compatibility with gravityforms plugin
    require_once( ‘config-woocommerce/config.php’ ); //compatibility with woocommerce plugin
    require_once( ‘config-wordpress-seo/config.php’ ); //compatibility with Yoast WordPress SEO plugin
    require_once( ‘config-menu-exchange/config.php’ ); //compatibility with Zen Menu Logic and Themify_Conditional_Menus plugin

    if(!current_theme_supports(‘deactivate_tribe_events_calendar’))
    {
    require_once( ‘config-events-calendar/config.php’ ); //compatibility with the Events Calendar plugin
    }

    // if(is_admin())
    require_once( ‘includes/admin/helper-compat-update.php’); // include helper functions for new versions

    /*
    * dynamic styles for front and backend
    */

    if(!function_exists(‘avia_custom_styles’))
    {
    function avia_custom_styles()
    {
    require_once( ‘includes/admin/register-dynamic-styles.php’ ); // register the styles for dynamic frontend styling
    avia_prepare_dynamic_styles();
    }

    add_action(‘init’, ‘avia_custom_styles’, 20);
    add_action(‘admin_init’, ‘avia_custom_styles’, 20);
    }

    /*
    * activate framework widgets
    */

    if(!function_exists(‘avia_register_avia_widgets’))
    {
    function avia_register_avia_widgets()
    {
    register_widget( ‘avia_newsbox’ );
    register_widget( ‘avia_portfoliobox’ );
    register_widget( ‘avia_socialcount’ );
    register_widget( ‘avia_partner_widget’ );
    register_widget( ‘avia_google_maps’ );
    register_widget( ‘avia_fb_likebox’ );
    register_widget( ‘avia_instagram_widget’ );

    }

    avia_register_avia_widgets(); //call the function immediatly to activate
    }

    /*
    * add post format options
    */

    add_theme_support( ‘post-formats’, array(‘link’, ‘quote’, ‘gallery’,’video’,’image’,’audio’ ) );

    /*
    * Remove the default shortcode function, we got new ones that are better ;)
    */

    add_theme_support( ‘avia-disable-default-shortcodes’, true);

    /*
    * compat mode for easier theme switching from one avia framework theme to another
    */

    add_theme_support( ‘avia_post_meta_compat’);

    /*
    * make sure that enfold widgets dont use the old slideshow parameter in widgets, but default post thumbnails
    */

    add_theme_support(‘force-post-thumbnails-in-widget’);

    /*
    * display page titles via wordpress default output
    *
    * @since 3.6
    */

    function av_theme_slug_setup()
    {
    add_theme_support( ‘title-tag’ );
    }

    add_action( ‘after_setup_theme’, ‘av_theme_slug_setup’ );

    /*title fallback (up to WP 4.1)*/

    if ( ! function_exists( ‘_wp_render_title_tag’ ) )
    {
    function av_theme_slug_render_title()
    {
    echo “<title>” . avia_set_title_tag() .”</title>”;
    }
    add_action( ‘wp_head’, ‘av_theme_slug_render_title’ );
    }

    /*
    * register custom functions that are not related to the framework but necessary for the theme to run
    */

    require_once( ‘functions-enfold.php’);

    /*
    * add option to edit elements via css class
    */
    // add_theme_support(‘avia_template_builder_custom_css’);

    // Defer Javascripts – added by #SG. Meant to be at the very end of the code.
    // Defer jQuery Parsing using the HTML5 defer property
    if (!(is_admin() )) {
    function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
    if ( strpos( $url, ‘jquery.js’ ) ) return $url;
    // return “$url’ defer “;
    return “$url’ defer onload='”;
    }
    add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );
    }
    //End of added code by #SG

    #997639

    In reply to: Demo Upload Issues

    Hello Ismael,

    I think we will be fine without the additional images for now. Thank you for offering though.

    1. I had two more questions. In the top bar where we can add number and email, is there a way to make an email a link to a form? I’ll include the home page link below in the private information and you’ll see where I have the “email” on the top left. I would like this to be able to be a link to a form pop-up.
    2. Oh and another quick question-icons, can I upload my own somehow?

    Thanks so much,
    Lindsay

    #993746

    Hi.

    I want to make the text colour in the top header to white but when I change this in general styling the text colour also changes for my drop down menu in services and you cant see it.

    Is there a code to please to only adjust the text colour for the top header? Also I’d like to add icons in the top header i.e. phone and a little calendar with the words Book Online which when clicked will go directly to booking online (much like a social profile behaviour)

    Can you please help?

    Thanks

    #993535

    Hey deiby,

    1. The google map that goes black, can be changed by the normal google or you can put an iframe.

    You can configure the styling of the map (saturation, colors, etc.) for each map by using the advanced layout builder or shortcode parameters.

    2. Enfold demos all, the menu cart can be changed to another icon. And put more icons of social networks.

    Yes you can add more social icons and change the menu cart icon. Depending on your requirements you may need to customize the theme files (i.e. by using a child theme).

    3. The images that appear with numbers and web links can be edited for my product.

    Yes you can customize all images and links.

    4. On the mobile and the iPad or the Tablet you can see the full page

    I’m not sure what you mean here – please elaborate.

    5. The area to subscribe to the newsletter is enabled to capture subscriptions or is just a non-functional example.

    Yes it’s a mailchimp form and will send the data to mailchimp.

    6. Your web template has the gpdr of the European Union, or have not yet updated it.

    The demo does not demonstrate the gpdr features yet (it would be irritating for users from non EU-countries).

    7. To change the colors of the template you have the option for the engine or it is only for the leaves of waterfalls.

    Yes you can select the color scheme in the theme options panel.

    8. That I need the enfold demo, but with the layer slider 2d. the question is if when you download the web template and install the demo I can get that component.

    I’m not sure if I understood your question but LayerSlider is bundled with Enfold and of course you can use the slider and its features.

    Best regards,
    Dude

    #990915

    In reply to: Flaticon

    Hello,
    I have deleted all the icons collections and downloaded only the one that interests me. Except that it still does not work. Attached screenshots of my actions. When I’m in a page, I can not use the icons. Why it does not work?

    In addition the old icons have been preserved when in reality they have been removed, we see them appear on the screen shot, they are the only ones that display correctly.

    Delphine

    #990280

    Topic: Flaticon

    in forum Enfold
    pixeet2016
    Participant

    Hi,
    I have a problem with the flaticon download option. I can’t download multiple collections of icons, the new collection systematically deleted the old, why? In addition the theme remembers the old icon but they do not appear in the flaticon option, strange… The collection of icons that I try to use comes from flaticon, I composed it myself, it’s not a pack, but normally it should works the same way, I do not understand.
    Could you help me ?

    #982481

    In reply to: Logo Pic responsive

    Hi,

    Thank you for sharing the example site to show what you are trying to achieve.

    In the example site, the image behind the logo is absolute positioned and in the WordPress site, the image behind the logo is set using CSS background property which is why it does not work the way you expect.

    Enfold is fully responsive and works right out of the box as you may have already seen it in our demos. If you like to make the theme work in a different way which it is not designed for then you need to add the necessary code.

    I personally like the header style which you are trying to achieve using Enfold. I was able to achieve a similar header style on my local system with a slightly different approach.

    Please perform the below steps:

    1. Remove all modification/codes added to achieve this header style.
    2. Remove the header background image from Enfold > General Styling > Logo area.
    3. Create a header widget area.
    4. Add the header background as a widget image from WordPress > Appearance > Widget > Header > Image Widget
    5. Copy and paste the below CSS to your child theme styles.css file.

    /************************************
    
     Full width widget as background 
    
    *************************************
    
    
    CSS Settings:
    
    » Initiate Flexbox
    » Topbar
    » Header
    » Logo
    » Menu
    » Widget
    » Social icons
    » Search
    » Cart icon
    
    ***********************************/ 
    
    
    
    /*--------------------------------
    
    » Initiate Flexbox
    
    --------------------------------*/
    
    
    
    /* Header */
    .responsive #top #header,
    /* Top bar */
    .responsive #top #header #header_meta,
    /* Search icon */
    .responsive #top #header #menu-item-search a,
    /* Cart icon */
    .responsive #top #header a.cart_dropdown_link,
    /* Social icon */
    .responsive #top #header #header_main nav .social_bookmarks,
    /* Logo */
    .responsive #top #header #header_main .inner-container .logo,
    /* Main menu, cart and social icons */
    .responsive #top #header #header_main .inner-container .main_menu,
    /* Widgets */
    .responsive #top #header #header_main .inner-container .widget,
    /* Header inner container */
    #top #header #header_main .container.av-logo-container .inner-container {    
        display: flex;
        position: relative;
    }
    
    
    
    
    /*--------------------------------
    
    » Topbar
    
    --------------------------------*/
    
    
    
    /* Top bar */
    
    .responsive #top #header #header_meta {
        flex-basis: 100%;    
    }
    
    
    
    /*--------------------------------
    
    » Header
    
    --------------------------------*/
    
    /* Height */
    
    #top #header #header_main .container.av-logo-container {
        height: inherit;   /* Auto height: Header takes the height of the contents */
        padding: 0; 
    }
    
    
    /* Header inner container */
    
    #top #header #header_main .container.av-logo-container .inner-container {
      height: inherit; 
      position: relative !important;
      flex-wrap: wrap;
    }
    
    
    /* Wrappers 
    --------------------------------*/
    
    /* Header content and Topbar */
    
    .responsive #top #header {
        flex-wrap: wrap;
    }
    
    /* Header contents: Logo, Menu, Social Icons and Widgets. */
    
    .responsive #top #header #header_main {
        flex-basis: 100%;    
    }
    
    /* Transparent header 
    --------------------------------*/
    
    .responsive.html_header_transparency #top #wrap_all #header {
        position: absolute;
    }
    
    
    /* Main content: 
    -----------------------*/
    
    .responsive #top #main { 
        padding-top: 0px; /* Gap between the content and header */
    } 
    
    
    /* Fixed header 
    --------------------------------*/
    
    /* Fixed header */
    
    .html_header_sticky.html_header_transparency #top #wrap_all #header,
    .html_header_sticky #top #wrap_all #header { 
        position: fixed; 
    } 
    
    
    /* Fixed header and page content gap. 
       Padding value should be same as the fixed header height. */
    
    .html_header_sticky:not(.html_header_transparency) #top #wrap_all #main { 
        /*padding-top: 145px !important; */
    } 
    
    @media only screen and (max-width: 767px) {
    .html_header_sticky #top #wrap_all #main {
        /*padding-top: 145px !important; */
    }}
    
    
    
    
    
    /*--------------------------------
    
    » Logo
    
    --------------------------------*/
    
    
    
    /* Logo */
    
    .responsive #top #header #header_main .inner-container .logo {
       order: 2;
        flex-basis: 100%;    
    
        width: auto;
        min-width: 80px; /* Minimum width of the logo in small screens */
        z-index: 1;
        justify-content: center;
        align-self: center;  
    
    
        /* Logo Overflow */
        /*transform: translateY(50%);*/
    }
    
    /* Logo image size */
    /*.responsive #top #header .logo,*/
    .responsive #top #header .logo a,
    .responsive #top #header .logo img { /* Logo Width and alignment */
        width: auto;         
        max-width: auto;  /* Logo width: (auto | 100% | px );  Set auto to display the uploaded image size. Select full size in media library */
        height: auto; /* Height specification is not required. It is proportional to the max width of the logo */
        align-items: center;
        align-self: center;
    }
    
    /* center transparency logo */
     .responsive #top #header .logo span img {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    } 
    
    
    /*--------------------------------
    
    » Menu
    
    --------------------------------*/
    
    
    
    /* Menu outer container: Menu with siblings cart and social icons */
    
    .responsive #top #header #header_main .inner-container .main_menu {
        order: 3;
        flex-basis: 100%;   /* Use calc to minus the width of the logo */
        align-items: flex-end;
        align-self: center;
        justify-content: center;
        margin-top: -100px;
    }
    
    /* Navigation */
    
    #header .av-main-nav {
        display: flex;
        flex-wrap: nowrap;
    }
    
    /*  Activate burger menu  */
    
    @media only screen and (max-width: 1000px) {
        #top #header .av-main-nav>li.menu-item {
            display: none!important;
        }
        #top #header .av-burger-menu-main {
            cursor: pointer;
            display: block!important;
        }
    }
    
    @media only screen and (max-width: 767px) {
    
    /* Mobile menu position fix */
    .responsive #top .av-logo-container .avia-menu {
        display: flex!important;
        align-items: center;
    }}
    
    /* Mega menu fix */
    #header li .avia_mega_div,
    #header li:hover .avia_mega_div {    
        right: auto!important;
        left: auto!important;
        max-width: 50vw;
    }
    
    /*--------------------------------
    
    » Widget
    
    --------------------------------*/
    
    
    /* Widgets */
    
    .responsive #top #header #header_main .inner-container .widget {
        order: 1;
        flex-basis: auto;
        padding: unset;
        clear: none!important;
    
        align-self: center;
        align-items: center;
        z-index: 1;
    }
    
    .responsive #top #header #header_main .inner-container .widget > div {
        display: flex;
        align-items: center;
    
        width: 100%;
        line-height: 14px;
        padding:0 10px;
    }
    
    
    
    
    
    /*--------------------------------
    
    » Social icons
    
    --------------------------------*/
    
    
    
    
    /* Flex support and position fix */
    .responsive #top #header #header_main nav .social_bookmarks {
        display: flex;
         top: auto;
         margin-top: 0;
         align-items: center;
    }
    /* Inherit height for flex alignment */
    #top .av-logo-container .social_bookmarks li {
        height: inherit;
    }
    
    
    
    
    /*--------------------------------
    
    » Search 
    
    --------------------------------*/
    
    
    
    /* Your styles here */
    
    
    
    /*--------------------------------
    
    » Cart 
    
    --------------------------------*/
    
    
    
    @media only screen and (max-width: 767px) {
    .responsive #top #menu-item-shop.cart_dropdown {
        display: flex;
        align-items: center;
    }
    .cart_dropdown .dropdown_widget .avia-arrow {
        display: none;
    }}
    
    
    
    /*--------------------------------
    
    Position fix
    
    ----------------------------------*/
    
    
    .responsive #top #header #header_main .inner-container .logo {
        margin-top: -75%;
        z-index: 9;
    }
    .responsive #top #header #header_main .inner-container .main_menu {
        margin-top: -10%;
    }
    .responsive #top #header #header_main .inner-container .widget {
        z-index: 1;
    }

    If you have any issue please post the WP login credentials with the user role as admin in private content area so we can take a closer look at the issue.

    Best regards,
    Vinay

    • This reply was modified 7 years, 9 months ago by Vinay.
    #979206
    aicompcloud
    Participant

    Since yesterday an error occured with self builded icons uploaded from fontello. They are just shown as little squares.
    I already tried this: http://kriesi.at/documentation/enfold/enable-cors/ but that doesn’t help. Clearing the cache didn’t help too? I think it is something in the htacces cause that error doesn’t happen on my cloned side.
    But these entries there are copied from other websites…I don’t know much about it.

    Could you check it if you find the error?

    # BEGIN WordPress
    
    # ----------------------------------------------------------------------
    # Rewrite from HTTP to HTTPS - if you want to use it, comment it out
    # ----------------------------------------------------------------------
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    
    # ----------------------------------------------------------------------
    # | Compressing and Caching - Version 2017                                                    |
    # ----------------------------------------------------------------------
    
    # Serve resources with far-future expires headers.
    #
    # (!) If you don't control versioning with filename-based
    # cache busting, you should consider lowering the cache times
    # to something like one week.
    #
    # https://httpd.apache.org/docs/current/mod/mod_expires.html
    
    <IfModule mod_expires.c>
        ExpiresActive on
        ExpiresDefault                                      "access plus 1 month"
    
      # CSS
        ExpiresByType text/css                              "access plus 1 year"
    
      # Data interchange
        ExpiresByType application/atom+xml                  "access plus 1 hour"
        ExpiresByType application/rdf+xml                   "access plus 1 hour"
        ExpiresByType application/rss+xml                   "access plus 1 hour"
    
        ExpiresByType application/json                      "access plus 0 seconds"
        ExpiresByType application/ld+json                   "access plus 0 seconds"
        ExpiresByType application/schema+json               "access plus 0 seconds"
        ExpiresByType application/vnd.geo+json              "access plus 0 seconds"
        ExpiresByType application/xml                       "access plus 0 seconds"
        ExpiresByType text/xml                              "access plus 0 seconds"
    
      # Favicon (cannot be renamed!) and cursor images
        ExpiresByType image/vnd.microsoft.icon              "access plus 1 week"
        ExpiresByType image/x-icon                          "access plus 1 week"
    
      # HTML - Behält die Website eine Stunde im Cache, neues wird erst nach Ablauf einer Stunde
      # angezeigt. Wenn nicht gewuenscht, bei 3600 eine Null eintragen
        ExpiresByType text/html                             "access plus 3600 seconds"
    
      # JavaScript
        ExpiresByType application/javascript                "access plus 1 year"
        ExpiresByType application/x-javascript              "access plus 1 year"
        ExpiresByType text/javascript                       "access plus 1 year"
    
      # Manifest files
        ExpiresByType application/manifest+json             "access plus 1 week"
        ExpiresByType application/x-web-app-manifest+json   "access plus 0 seconds"
        ExpiresByType text/cache-manifest                   "access plus 0 seconds"
    
      # Media files
        ExpiresByType audio/ogg                             "access plus 1 month"
        ExpiresByType image/bmp                             "access plus 1 month"
        ExpiresByType image/gif                             "access plus 1 month"
        ExpiresByType image/jpeg                            "access plus 1 month"
        ExpiresByType image/png                             "access plus 1 month"
        ExpiresByType image/svg+xml                         "access plus 1 month"
        ExpiresByType image/webp                            "access plus 1 month"
        ExpiresByType video/mp4                             "access plus 1 month"
        ExpiresByType video/ogg                             "access plus 1 month"
        ExpiresByType video/webm                            "access plus 1 month"
    
      # Web fonts
    
        # Embedded OpenType (EOT)
        ExpiresByType application/vnd.ms-fontobject         "access plus 1 month"
        ExpiresByType font/eot                              "access plus 1 month"
    
        # OpenType
        ExpiresByType font/opentype                         "access plus 1 month"
    
        # TrueType
        ExpiresByType application/x-font-ttf                "access plus 1 month"
    
        # Web Open Font Format (WOFF) 1.0
        ExpiresByType application/font-woff                 "access plus 1 month"
        ExpiresByType application/x-font-woff               "access plus 1 month"
        ExpiresByType font/woff                             "access plus 1 month"
    
        # Web Open Font Format (WOFF) 2.0
        ExpiresByType application/font-woff2                "access plus 1 month"
    
      # Other
        ExpiresByType text/x-cross-domain-policy            "access plus 1 week"
    </IfModule>
    
    <IfModule mod_deflate.c>
    # Insert filters / compress text, html, javascript, css, xml:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/vtt 
    AddOutputFilterByType DEFLATE text/x-component
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/js
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-httpd-php
    AddOutputFilterByType DEFLATE application/x-httpd-fastphp
    AddOutputFilterByType DEFLATE application/atom+xml 
    AddOutputFilterByType DEFLATE application/json
    AddOutputFilterByType DEFLATE application/ld+json 
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject 
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/font-woff2
    AddOutputFilterByType DEFLATE application/x-font-woff
    AddOutputFilterByType DEFLATE application/x-web-app-manifest+json font/woff
    AddOutputFilterByType DEFLATE font/woff 
    AddOutputFilterByType DEFLATE font/opentype
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE image/x-icon 
    
    # Exception: Images
    SetEnvIfNoCase REQUEST_URI \.(?:gif|jpg|jpeg|png|svg)$ no-gzip dont-vary
    
    # Drop problematic browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
    
    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    
    #Alternative caching using Apache's "mod_headers", if it's installed.
    #Caching of common files - ENABLED
    <IfModule mod_headers.c>
    <FilesMatch "\.(ico|pdf|flv|swf|js|css|gif|png|jpg|jpeg|txt)$">
    Header set Cache-Control "max-age=2592000, public"
    </FilesMatch>
    </IfModule>
    
    <IfModule mod_headers.c>
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary Accept-Encoding
      </FilesMatch>
    </IfModule>
    
    # Set Keep Alive Header
    <IfModule mod_headers.c>
        Header set Connection keep-alive
    </IfModule>
    
    # If your server don't support ETags deactivate with "None" (and remove header)
    <IfModule mod_expires.c> 
      <IfModule mod_headers.c> 
        Header unset ETag 
      </IfModule> 
      FileETag None 
    </IfModule>
    
    <IfModule mod_headers.c>
    <FilesMatch ".(js|css|xml|gz|html|woff|woff2|ttf)$">
    Header append Vary: Accept-Encoding
    </FilesMatch>
    </IfModule>
    
    <FilesMatch ".(ttf|otf|woff)$">
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
    </IfModule>
    </FilesMatch> 
    
    # ----------------------------------------------------------------------
    #   Block WordPress files from outside access
    # ----------------------------------------------------------------------	
    
    # No access to the install.php
    <files install.php>
    Order allow,deny
    Deny from all
    </files>
     
    # No access to the wp-config.php 
    <files wp-config.php>
    Order allow,deny
    Deny from all
    </files>
     
    # No access to the readme.html
    <files readme.html>
     Order Allow,Deny
     Deny from all
     Satisfy all
    </Files>
     
    # No access to the liesmich.html for DE Edition
    <Files liesmich.html>
     Order Allow,Deny
     Deny from all
     Satisfy all
    </Files>
     
    # No error log access 
    <files error_log>
    Order allow,deny
    Deny from all
    </files>
    
    #No access to the .htaccess und .htpasswd
    <FilesMatch "(\.htaccess|\.htpasswd)">
      Order deny,allow
      Deny from all
    </FilesMatch>
    
    # Block access to includes folder
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^wp-admin/includes/ - [F,L]
    RewriteRule !^wp-includes/ - [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    RewriteRule ^wp-includes/theme-compat/ - [F,L]
    </IfModule>
    
    # ----------------------------------------------------------------------
    #   Switch off the security risk XML-RPC interface completely
    # ----------------------------------------------------------------------
    
    ### @see https://digwp.com/2009/06/xmlrpc-php-security/
    
    <Files xmlrpc.php>
     Order Deny,Allow
     Deny from all
    </Files>
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # Wordfence WAF
    <IfModule mod_php7.c>
    	php_value auto_prepend_file '/is/htdocs/wp12698195_92KVI3G99T/www/aicomp_group/wordfence-waf.php'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    
    # END Wordfence WAF
    
    # END WordPress
    # BEGIN Hotlinking
    
    # END Hotlinking
    
    #974547
    shermski
    Participant

    Hi,

    I have changed my site address URL to my ‘production’ URL. After this the icons I used form the Iconbox are not shown anymore.
    I have tried to fix it with the plugins ‘Velvet Blues Update URLs’ and ‘Better Search Replace’. In the wp-admin I can see all the icons, but once I want to see it on the site, I don’t see the icons. In Chrome I see just squares and in Edge I see nothing.
    I have also changed my wp-config.php and defined both URL’s.

    Could you please help me out in retrieving the icons back to the site?

    Cheers,

    Nataliya

    #968183

    In reply to: Portfiolio items

    Hi,
    Ok, lets number these so I can keep track,
    1: for the code that was making the media library page portfolio not show, but was needed for other pages, I added a custom class to the media library page portfolio and then added this css to Quick CSS:

    #top .media-library.grid-sort-container .media-library_sort {
        display: block !important; 
    }

    2: to remove the portfolio grid sort options (categories) from the projects pages, I recommend changing this option in the element, just change “Sortable” to “No, do not display sort options”
    2018-06-06_234659
    But if you really want to use css, try this in your Quick CSS:

    #top.single-portfolio div.sort_width_container.av-sort-yes {
    display: none !important;
    }

    3: To remove these Media Library portfolio items from the projects pages, I went to the link and at the bottom of the page I didn’t see any items with media play icons on them. But if I did I would recommend excluding that category from your portfolio grid, by holding the control key down while clicking all of the categories you wish to show:
    2018-06-06_235756
    Please review these and let us know which number still needs attention, or if I misunderstood any please explain further.

    Best regards,
    Mike

    #963108
    zarlekin
    Participant

    Hello kriesi team, first of all I want to thank you for this excellent theme and your top-notch support. I am using Enfold for years now and love it :-)

    I recently updated a website from a very old Enfold version (I think 3.5.3) to the newest version and encountered two problems with the burger menu /mobile menu.

    First problem: Close button doesn’t show up because of problems with avia.js in the child-theme

    In the old version I had made changes to functions.php and avia.js in the child theme to move the featured Image below post title, date, etc.
    The changes I made:

    child-theme/function.php:

    // Replace avia.js
    function change_aviajs() {
     wp_dequeue_script( 'avia-default' );
     wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );

    As shown in: https://kriesi.at/support/topic/modifying-jsavia-js-for-a-child-theme/

    child-theme/js/avia.js:

    jQuery('article.post').each(function(){
    
    jQuery(this).find('.entry-content-header').after(jQuery(this).find('.big-preview').detach());
    
    })

    As shown in: https://kriesi.at/support/topic/move-featured-image-below-post-title-date-etc/

    In order to update the website, I now copied the new avia.js from the new Enfold version into the child-theme. After that I added again the code snippet at the end oft the document as I did in the old version. However doing this now leads to problems with the burger menu. If I click on the menu, the icon won’t get replaced with a close button. Also the secondary menu is displayed on top of the mobile menu.

    Only if I delete my avia.js file from the child theme, the burger menu works fine again.
    So I guess the code snippet has to be updated, too. But I am not a developer :( Could you please help me with that?

    Second problem: Search and close icons are displayed on top ob menu links

    If I click on a menu item with a lot of subitems naturally I have to scroll the menu. But when I scroll, only the menu items scroll. The search icon and the close icon remain where they are and overlap with the menu items. How can I fix this?

Viewing 30 results - 61 through 90 (of 276 total)