Viewing 30 results - 1,831 through 1,860 (of 142,845 total)
  • Author
    Search Results
  • Hi,
    Unfortunately not, and I don’t suggest adding the header.php or footer.php to a child theme without updating them after each update, this is the top reason for errors after updates.
    Perhaps a request for this feature to the Dev Team: Github Feature Request would be best.

    Best regards,
    Mike

    #1480877

    In reply to: preloader issues

    well – as far as i can see – this solution given to you is based too on changing things in header.php:

    https://kriesi.at/support/topic/preloader-on-2-pages-loading-issues/#post-1480524

    my recommendation is only to use not the parent header.php but a copy of header.php inside your child-theme root directory.
    by this – an update will not overwrite the changings.

    However, since header.php is one of those files that is often affected by changes to the Enfold site, you need to keep track of whether you need to repeat this procedure with a new copy.

    If you have received a functions.php child theme solution from Enfold, it would be nice if you would post it.
    you can see here a working example page of my impressum page on a test installation:
    https://clean.webers-testseite.de/impressum/
    All other pages do not have a preloader.

    #1480867

    In reply to: burger menu

    Hey sophie,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 479px) {
    .responsive #top .av-main-nav .av-burger-menu-main {
        position: fixed;
        top: 2px;
        right: 7%;
    }}
    @media only screen and (min-width: 480px) and (max-width: 570px) {
    .responsive #top .av-main-nav .av-burger-menu-main {
        position: fixed;
        top: 2px;
        right: 36%;
    }}
    @media only screen and (min-width: 571px) and (max-width: 767px) {
    .responsive #top .av-main-nav .av-burger-menu-main {
        position: fixed;
        top: 2px;
        right: 30%;
    }}

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1480862

    Topic: burger menu

    in forum Enfold
    sophieantoine2016
    Participant

    Hello,
    Could you tell me how to set the burger menu on my website so when I scroll down on mobile device the burger menu is still appearing and follow the scroll.
    Because now it stays on the top.

    thanks for your reply :)

    Sophie

    Guenni007
    Participant

    on an older post there is no working solution for it.
    https://kriesi.at/support/topic/change-color-body-style-on-one-page/
    If I look at the differences in the DOM, I notice that it essentially depends on the html classes: html_stretched, html_boxed and html_av-framed-box. These classes are set in the header.php according to the settings of the Enfold options. ( html_stretched, html_boxed and html_av-framed-box ) on body they are set without html_ )
    There are some filters – but nothing could bring the solution. (see old topic).

    A child theme header.php, on the other hand, is quickly created because a file of that name in the child theme root directory is automatically used instead of the parent theme file.

    If you only want to use the framed layout for a specific page, it is easier to use the reverse method – set the framed layout setting globally and change it to boxed or stretched for all other pages.

    Long story short. Upload to your child-theme route directory a header.php copy and edit it.
    search for that line ( around line 26) :

    $style = $avia_config['box_class'];
    

    if you set the stretched layout – and want to have for a specifc page a boxed layout –
    or you have set the boxed layout and want only one page to be in stretched layout – replace it by:

    if (is_page(array(27))) { 
    	$style = 'boxed'; // or 'stretched'
    } else {
    	$style = $avia_config['box_class'];
    }

    now – as mentioned above it is not easy to get for only some pages a framed layout. So here we go the other way :
    Set on Enfold options page a framed layout as global setting – and change the layout to all others that are not that page:

    if (!is_page(array(27))) { 
    	$style = 'stretched';
    } else {
    	$style = $avia_config['box_class'];
    }
    

    now every page now is stretched except the page 27

    see here example page : https://clean.webers-testseite.de/impressum/ this page is framed – all others are stretched.

    #1480851

    Topic: preloader issues

    in forum Enfold
    Munford
    Participant

    hi
    I just moved my new site from a subdomain to my root. I was seeing an error:
    Warning: Undefined variable $preloader in /customers/a/3/6/c9w13mh8q/webroots/fa765f73/wp-
    Warning: Undefined variable $preloader in /customers/a/3/6/c9w13mh8q/webroots/fa765f73/wp-content/themes/enfold-child/header.php on line 266

    I had a header in my child theme that is using this code you gave me to limit the preloader to 2 pages only around line 40:

    if (is_page([1147, 945])) {
        $preloader = avia_get_option('preloader') === "preloader" 
            ? 'av-preloader-active av-preloader-enabled' 
            : 'av-preloader-disabled';

    }

    this was working ok on the subdomain but now it looks like all the pages that DON’T have the preloader are throwing that error which is also blocking the footer from loading on those pages. I took the header.php out of my child theme (I noticed it said not to add it to a child theme?) and have disabled the preloader, but it would be great to just have it on the front page if possible if I decide to use it.

    I also just added wp-rocket to my site since the videos were really loading slowly. It made it faster but sometimes the pages don’t load at all unless I stop and go back and forward again. Not sure if you can reproduce that. I am also seeing an error that on mobile the footer doesn’t load on the front page in any browser. There’s a video that loads at the top of the page but even when it’s fully loaded the whole footer section is gone. It’s fine on all the other pages. Not sure if that is due to a setting in wp rocket (I enabled mobile caching) or something else. I didn’t see that issue before I moved the site and added wp-rocket.

    thanks for your help
    Nancy

    • This topic was modified 11 months, 3 weeks ago by Munford.
    • This topic was modified 11 months, 3 weeks ago by Munford.
    • This topic was modified 11 months, 3 weeks ago by Munford.
    #1480842

    In reply to: Add notification bar

    Hi,
    If you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
    use wpcode php snippet and activate
    and ensure that it is activated, then add the above code and save.

    Best regards,
    Mike

    #1480841

    Hi,
    I see now your shop page is working, this looks like a conflict between a plugin and the theme.
    You could enable each plugin one at a time to find the one that is a conflict, and stop using it.
    Unfortunately we are limited to offering support for plugins.

    Please note that using the contact form is not appropriate for support questions, please log in to the support forum and open a new thread if you need further assistance.
    If you are unable to login to the support forum because you don’t have a activate support contract, please try going to your Theme Forest account and renew your support and then log in to the support forum and open a new thread.

    Best regards,
    Mike

    #1480831
    hm.stedler
    Participant

    Ich habe 2 Bilder. Das erste Bild ist 1200 x 400px und eine Foto. Das zweite Bild 600x300px ist ein Text. Nun möchte ich das zweite Bild mit dem Text über das erste Bild legen. Dies soll auch reponsiv sein. Geht das mit Enfold?

    Translate by google – Sorry –
    I have 2 pictures. The first image is 1200 x 400px and a photo. The second image 600x300px is a text. Now I want to overlay the second image with the text on top of the first image. This should also be reprosive. Is that possible with Enfold?

    #1480820

    In reply to: Second Color Section

    Hi,
    You have this custom css:

    @media only screen and (max-width: 767px) {
        #av_section_2 {
            height: auto !important;
            min-height: auto !important;
            padding-top: 30px !important;
            padding-bottom: 30px !important;
            overflow: visible !important;
        }
    }

    in your siteground cache, perhaps it is in your Quick CSS, or your child theme stylesheet.
    Change the padding-top & padding-bottom to zero, then clear your site cache, siteground cache, and your browser cache and check again.

    Best regards,
    Mike

    #1480816

    In reply to: Add notification bar

    Hi,
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_message_banner_script() { ?>
      <script>
    (function($){
      $('#top #header_meta > .container').each(function() {
      	var messageTitle = 'FREE delivery within 60 miles';
      	var messageBanner = $('<p class="message-banner">'+ messageTitle +'</p>').css({'text-align':'center','margin-top':'0','background-color':'red','margin':'0','z-index':'1','position':'relative','color':'#fff'});
      	$(messageBanner).insertBefore('#header_meta');
    });
    })(jQuery);
    </script>
      <?php
    }
    add_action( 'wp_footer', 'custom_message_banner_script', 99 );

    adjust the colors to suit. This is the result for transparent desktop headers:
    Screen Shot 2025 04 05 at 7.03.19 AM
    and scrolled desktop headers:
    Screen Shot 2025 04 05 at 7.05.19 AM
    and mobile headers:
    Screen Shot 2025 04 05 at 7.06.48 AM

    Best regards,
    Mike

    #1480812

    In reply to: Bannersize

    Hi,

    Thanks for sharing. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1480802

    In reply to: Second Color Section

    Thank you. That did fix the problem, but another has appeared. On the mobile, the second section has some padding at the top and bottom. At the moment, it’s only at the bottom, because I have hidden the top section on mobile. I believe that CSS that we removed was there to address this issue.

    #1480801

    In reply to: Add notification bar

    Hi, Ismael,
    I already have something in the extra elements (the large phone number). I tried using the documentation to add the code to the function.php file, but it wouldn’t save. All I want is a thin colored bar at the top of townleypoolandspa.com that says “FREE delivery within 60 miles”. Is there another way to accomplish this?
    Thanks,
    Justine

    #1480780
    cadra83
    Participant

    Good morning, I have abnormal behavior of the meta description set in yoast seo in the home page. Instead, google has taken the information from the top bar!

    What do you think?

    #1480755

    Hi,

    1.) The changes in the Advanced Styling panel aren’t taking effect because of an invalid css code in the Quick CSS field:

    /* REMOVE HEADER LINE */
    #top .av_header_with_border.av_header_transparency #header_main {
        border: none;
    

    The second css rule was not closed correctly -— it was missing a curly brace. We have corrected this. You can also adjust the default menu color in Enfold > General Styling > Logo Area > Logo Area Font Color.

    2.) We manually removed the space from the shortcodes again. Unfortunately, we are not yet sure why it’s behaving like this. Let us know if the issue occurs again.

    Best regards,
    Ismael

    #1480752

    Hi,

    This is not possible, unfortunately. Autoplay is only allowed on muted videos.

    Chrome’s autoplay policies are simple:

    — Muted autoplay is always allowed.
    — Autoplay with sound is allowed if:
    — The user has interacted with the domain (click, tap, etc.).
    — On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
    — The user has added the site to their home screen on mobile or installed the PWA on desktop.
    — Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.

    https://developer.chrome.com/blog/autoplay

    Best regards,
    Ismael

    #1480749

    Hey mattb1169,

    Thank you for the inquiry.

    Did you set the Row Margins > Custom Top and Bottom Margin of the column element to -205px? Please make sure to adjust the value using the dedicated fields for mobile view.

    View post on imgur.com

    Best regards,
    Ismael

    #1480724

    Topic: Add notification bar

    in forum Enfold
    jnightingale
    Participant

    Hi,
    I’d like to add a notification bar at the very top of the website pages at townleypoolandspa.com. Can you please help me do this simply? Thanks!
    Justine

    #1480719
    playa-media
    Participant

    Hi,
    in my current project https://www.bhe-architektur.at/architektur-am-attersee/ I am finetuning all the LayerSliders for different screen sizes. As you know LayerSlider enables different styles for Desktop, Tablet and Mobile and everything works fine for me except of Mobile/LANDSCAPE view. Can I define different styles for this size and view within LayerSlider or do I have to do so by using CSS / media queries?
    I have already tried it with CSS by assigning a class to a text layer. In that way I can modify some design properties of the layer (like drawing a border around it) but NOT the vertical position of the layer:

    .textLayer {
        margin-top: 20px !important;
        /* or */
        transform: translateY(20px) !important;
    }

    How can I achieve that?

    Best regards,
    Stefan

    #1480717
    melanie308
    Participant

    Also, what is the size for a full page image? the image that’s there now is 2000×816 px. the top is getting cut off and i’m using the full screen slider media element.

    #1480710

    Hi Mike,

    A small update on this. What I want to achieve is not to change the URL structure, but rather that each paginated is pointing towards itself as a canonical page. Then, the Yoast plug-in also advises to add rel=next and rel=prev tags to the pagination buttons.

    You can read more about that here: https://yoast.com/help/is-the-plugin-compatible-with-paginated-content/
    And here is a Github link to the implementation: https://gist.github.com/amboutwe/66c583d2ef4015a8a244ee3e0e8cd1a0

    There is also another ticket that links to this: https://kriesi.at/support/topic/alternate-page-with-correct-canonical-tag/.

    I tried, based on the documentation, to alter the Yoast plug-in to take the avia-pagination into account when adding it’s logic, both canonical wise and with the prev/next rel’s.

    Could you guide me in the right direction with this:

    <?php
    /**
     * Fix Yoast SEO pagination compatibility with Enfold theme using avia-element-paging.
     *
     * This will:
     * - Override the canonical URL to point to the current paginated URL
     * - Add correct rel="next" and rel="prev" links for Yoast SEO
     * - Handle first page navigation properly
     * - Work with multiple Enfold paginated pages
     */
    
    // Store max pages in a more efficient way
    global $avia_pagination_data;
    $avia_pagination_data = [];
    
    // More efficient way to store max pages without creating duplicate queries
    add_filter('avia_blog_post_query', function($query, $params) {
        global $avia_pagination_data;
        
        // Store the page ID so we can track pagination for multiple pages
        $page_id = get_the_ID();
        if (!isset($avia_pagination_data[$page_id])) {
            $avia_pagination_data[$page_id] = [];
        }
        
        // We don't need to create a new query object here
        // Just extract the pagination data from the query args
        if (isset($query['posts_per_page']) && isset($params['items'])) {
            $posts_per_page = intval($query['posts_per_page']);
            $total_items = intval($params['items']);
            
            if ($posts_per_page > 0) {
                $max_pages = ceil($total_items / $posts_per_page);
                $avia_pagination_data[$page_id]['max_pages'] = $max_pages;
            }
        }
        
        return $query;
    }, 20, 2);
    
    /**
     * Helper function to check if we're on an Enfold paginated page
     */
    function is_enfold_paginated_page() {
        // Check if we're on a singular page that might have pagination
        if (!is_singular()) {
            return false;
        }
        
        // Check for the pagination parameter
        $has_param = isset($_GET['avia-element-paging']);
        
        // Also check if the page content contains Enfold pagination elements
        $content = get_post_field('post_content', get_the_ID());
        $has_pagination_element = (
            strpos($content, 'blog') !== false || 
            strpos($content, 'portfolio') !== false ||
            strpos($content, 'av_masonry_entries') !== false
        );
        
        return $has_param || $has_pagination_element;
    }
    
    /**
     * Get current page and max pages for the current Enfold page
     */
    function get_enfold_pagination_data() {
        global $avia_pagination_data;
        $page_id = get_the_ID();
        
        $current_page = isset($_GET['avia-element-paging']) ? intval($_GET['avia-element-paging']) : 1;
        $max_pages = isset($avia_pagination_data[$page_id]['max_pages']) ? 
                     $avia_pagination_data[$page_id]['max_pages'] : 
                     10; // Fallback value
                     
        return [
            'current' => $current_page,
            'max' => $max_pages
        ];
    }
    
    /**
     * Fix canonical URL for Enfold pagination
     */
    add_filter('wpseo_canonical', function($canonical) {
        if (!is_enfold_paginated_page()) {
            return $canonical;
        }
        
        $data = get_enfold_pagination_data();
        $current_page = $data['current'];
        
        // Only modify if we're on a paginated page
        if ($current_page > 1) {
            return add_query_arg('avia-element-paging', $current_page, get_permalink());
        }
        
        return $canonical;
    });
    
    /**
     * Fix prev link for Enfold pagination
     */
    add_filter('wpseo_prev_rel_link', function($link) {
        if (!is_enfold_paginated_page()) {
            return $link;
        }
        
        $data = get_enfold_pagination_data();
        $current_page = $data['current'];
        
        if ($current_page > 1) {
            $prev_page = $current_page - 1;
            $prev_url = ($prev_page === 1) ? 
                       get_permalink() : 
                       add_query_arg('avia-element-paging', $prev_page, get_permalink());
                       
            return '<link rel="prev" href="' . esc_url($prev_url) . '" />' . PHP_EOL;
        }
        
        return false;
    });
    
    /**
     * Fix next link for Enfold pagination
     */
    add_filter('wpseo_next_rel_link', function($link) {
        if (!is_enfold_paginated_page()) {
            return $link;
        }
        
        $data = get_enfold_pagination_data();
        $current_page = $data['current'];
        $max_pages = $data['max'];
        
        if ($current_page < $max_pages) {
            $next_page = $current_page + 1;
            $next_url = add_query_arg('avia-element-paging', $next_page, get_permalink());
            
            return '<link rel="next" href="' . esc_url($next_url) . '" />' . PHP_EOL;
        }
        
        return false;
    });
    
    /**
     * Also fix first page navigation (when no pagination parameter is present)
     */
    add_action('wp_head', function() {
        // Only run on first page (no pagination parameter)
        if (is_enfold_paginated_page() && !isset($_GET['avia-element-paging'])) {
            $data = get_enfold_pagination_data();
            $max_pages = $data['max'];
            
            // Only add next link if we have more than one page
            if ($max_pages > 1) {
                $next_url = add_query_arg('avia-element-paging', 2, get_permalink());
                echo '<link rel="next" href="' . esc_url($next_url) . '" />' . PHP_EOL;
            }
        }
    }, 999); // Run late to ensure it doesn't get overridden
    

    Would be greatly appreciated, as this would solve the GSC notifications and let the pagination target to itself.

    Kind regards,
    Joost

    #1480706

    Hi,

    Try to remove this css code:

    .av-masonry-container {
        background: red;
    }
    

    And keep (https://kriesi.at/support/topic/background-colour-of-masonry-alb-element/#post-1480699). The Colors > Custom Background Color should be applied to the entire masonry element after removing it. You can also try this css code:

    #top .av-masonry.av-m04fp9di-542ac160671eb8fd749f26843e3e2910 {
        background-color: brown;
    }
    

    Best regards,
    Ismael

    #1480691

    Hey fanlokbun,

    Thank you for the inquiry.

    Did you try the other suggestion in the thread? https://kriesi.at/support/topic/masonry-gallery-fade-in-on-load/#post-1366942

    Best regards,
    Ismael

    #1480688

    Hi,
    that is strange. For us in our company it jumps either with or without Sidebar plugin on Firefox/Chrome/Safari – Android/iOS.

    It seems mostly happend after the last flipbox is flipped, if your going back to the top.

    Best regards,
    Martin

    • This reply was modified 11 months, 3 weeks ago by janssen-media.
    cobaltsapphire
    Participant

    Certain pages on my website https://7saturdaysfinancial.com/ is having display issues where it is not showing stylized and the menu is display as text as opposed to the three bars. Pages where I’ve seen this issue appear are the FAQ page, the Blog page, the home page. Happens on both desktop and mobile. I have screenshots if you would like a visual as well.

    #1480664

    Hi,

    Great, I’m glad that we could help. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1480655

    Ismael,

    I asked WPML and they came up with this solution.

    So I expect that because of this XML, I would see an ID and LANGUAGE attribute that I can change with WPML per language version. But I do not.

    Greetings,
    Gerben

    • This reply was modified 11 months, 3 weeks ago by envis.
    #1480651

    you have on those post-types different classes on body tag ( or #top).
    so you can differ by :
    #top.page
    #top.single-portfolio
    #top.single-post

    so try:

    .responsive #top.page  {
      font-size: 13px !important;
    }
    .responsive #top.single-post {
      font-size: 16px !important;
    }
    .responsive #top.single-portfolio  {
      font-size: 19px !important;
    }
    #1480643
    fanlokbun
    Participant

    Hi I want the image in the masonry gallery to fade in when they first load like this site:
    https://aswarbyrectory.com/
    I added the css in this thread but it isn’t working:

    Any ideas?
    Thanks

Viewing 30 results - 1,831 through 1,860 (of 142,845 total)