Viewing 30 results - 1,291 through 1,320 (of 142,938 total)
  • Author
    Search Results
  • #1486548

    That actually worked like a charm, thank you so much! I modifyed it a bit so the h1 stays at the top and it moves only the rest of the description:
    I know why i still stay with enfold after all those years :D

    function custom_script() { ?>
    <script>
    document.addEventListener('DOMContentLoaded', function () {
    
    	/* --- Grab required elements ---------------------------------------- */
    	const termDescription = document.querySelector('.archive .term-description');
    	const productsGrid    = document.querySelector('.archive .products');   // works for columns-3/4/5 …
    
    	if (!termDescription || !productsGrid) return;
    
    	/* --- 1) Create wrapper for the moved text -------------------------- */
    	const movedDesc = document.createElement('div');
    	movedDesc.className = 'moved-term-description';
    	movedDesc.style.cssText = 'clear:both;margin-top:4rem;';
    
    	/* --- 2) Move everything except the first <h1> into movedDesc ------- */
    	const h1 = termDescription.querySelector('h1');   // stays in place
    	[...termDescription.childNodes].forEach(node => {
    		// Keep the H1 where it is, move the rest
    		if (h1 && node === h1) return;
    		movedDesc.appendChild(node);
    	});
    
    	/* --- 3) Insert movedDesc AFTER the product grid -------------------- */
    	productsGrid.parentNode.insertBefore(movedDesc, productsGrid.nextSibling);
    
    });
    </script>
    <?php }
    add_action( 'wp_footer', 'custom_script', 99 );
    
    #1486546

    Hi,
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor, 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 bellow code and save.
    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.

    function custom_script() { ?>
      <script>
      document.addEventListener("DOMContentLoaded", function () {
      const termDescription = document.querySelector(".archive .term-description");
      const productsGrid = document.querySelector(".archive .products.columns-3");
    
      if (termDescription && productsGrid && productsGrid.parentNode) {
        productsGrid.parentNode.insertBefore(termDescription, productsGrid.nextSibling);
      }
    });
    </script>
      <?php
    }
    add_action( 'wp_footer', 'custom_script', 99 );

    Sorry, I don’t read your language in the screenshot, now that I can translate your live page it does make sense. :)

    Best regards,
    Mike

    #1486545

    Hi, I appreciate @guenni007 reply but sadly I could not understand what he meant.

    I’ve pasted the link below. It’s on desktop screens where the issue is visible.

    Many thanks in advance, you guys are the best!

    #1486544

    In reply to: Update from 2.4.1

    Hi,
    Perhaps this will be easier, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor, 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 below code and save.

    function custom_menu_by_page_name($args) {
        // Only modify the main header menu
        if ($args['theme_location'] != 'avia') {
            return $args;
        }
    
        // Get current page object
        if (is_page()) {
            global $post;
            $page_slug = $post->post_name;
    
            // Map of page slugs to custom menu names
            $menu_switches = array(
                'about-us'     => 'rick-sherman',
                'faq'     	   => 'rick-sherman',
                'contact'      => 'sherman-sound',
                'help'         => 'sherman-sound',
                // Add more as needed
            );
    
            // Check if the current page slug is in our list
            if (array_key_exists($page_slug, $menu_switches)) {
                $menu_name = $menu_switches[$page_slug];
                $menu_obj = wp_get_nav_menu_object($menu_name);
    
                if ($menu_obj) {
                    $args['menu'] = $menu_obj->term_id;
                }
            }
        }
    
        return $args;
    }
    add_filter('wp_nav_menu_args', 'custom_menu_by_page_name');
    

    in the code under $menu_switches = array( you see four page names with the menu name, such as:
    'about-us' => 'rick-sherman',
    change the page “slugs” or names to suit and the menu names, whatever pages or posts that you don’t add to the code will use your default menu.
    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.

    Best regards,
    Mike

    #1486537

    Topic: Header Button

    in forum Enfold
    cnpetr
    Participant

    Hi! I was able to follow instructions on adding a widget area to the header so that I could display a button on the right. So I have Logo (left), menu (centered) and button (right). I like the look on desktop but would like it to adjust in mobile so that the button goes within the hamburger menu dropdown. Is this possible?

    #1486525

    and after doing that – try:

    @media only screen and (max-width: 479px) {
      .html_header_transparency #top .avia-builder-el-0 .container, 
      .html_header_transparency #top .avia-builder-el-0 .slideshow_caption {
        padding-top: 25px;
      }
      @media only screen and (max-width: 476px) {
        #top .avia-caption-content {
          display: none!important
        }
      }
    }
    #1486517
    pelgrimrat
    Participant

    Hello people on the support forum,

    I am creating a new website on this subdomain:

    Yesterday, all of a sudden the “Save” buttons in the editor stopped working! So right now I can’t save any of the changes I make in the editor.
    It happened suddenly, out of nowhere.

    Any help would be much appreciated!

    Best regards,
    Maarten

    my solution – a little adjust of css from ismael – but easiest way is to remove it – and remove please the rule:

    #header_main .widget {
      display: flex;
      align-items: center;
      margin-left: 85%;
      margin-top: 2%;
      position: absolute;
    }

    now try:

    @media only screen and (min-width: 1430px) {
      #header #header_main {
        width: 1430px;
        margin: 0 auto;
      }
    }
    
    @media only screen and (min-width: 990px) {
      #header #header_main {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-around;
      }
      #header #header_main > * {
        flex: 1 1 auto;
        align-self: center;
        width: unset;
      }
      #header #header_main .av-logo-container {
        flex-basis: calc(100% - 170px);
        flex-grow: 1;
        order: 1;
        max-width: unset;
      }
      #header #header_main .widget {
        margin-right: 50px;
        flex-grow: 0;
        flex-basis: 120px !important;
        order: 2;
        display: flex;
        justify-content: center;
      }
      #header #header_main #header_main_alternate {
        flex-basis: 100%;
        order: 3;
        border-top: none;
      }
    }
    
    @media only screen and (max-width: 989px) {
      #header #header_main {
        display: flex;
        flex-flow: wrap column-reverse;
      }
      #header #header_main .widget {
        margin-top: 0px;
        padding: 10px 0 !important;
      }
    }

    sadly we loose with this the border-top of #header_main_alternate – or you can live with it that the border-top does not have the full screen-width.
    then remove that border-top: none line.

    #1486495

    Hey tonyiatridis,

    Thanks for the inquiry.

    You can use this css code to display the post navigation on mobile view:

    @media only screen and (max-width: 789px) {
    
      /* Add your Mobile Styles here */
      .responsive #top .avia-post-nav {
        display: block;
      }
    }

    Make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings and purge the cache.

    Let us know the result.

    Best regards,
    Ismael

    Hey GWS,

    Thank you for the inquiry.

    You can add this css code to move the donate button below the logo on mobile view.

    @media screen and (max-width: 768px) {
      .header_main {
        display: flex;
        flex-direction: column;
      }
    
      .widget_text {
        order: 2;
      }
    
      .av-logo-container {
        order: 1;
      }
    
      .header_main_alternate {
        order: 3;
      }
    
      #header_main #custom_html-22 {
        margin-top: 0 !important;
        padding: 10px 0;
       }
    }
    

    View post on imgur.com

    Best regards,
    Ismael

    #1486487
    tonyiatridis
    Participant

    hi guys,

    I need to get the side arrow nav working on the mobile version for portfolio pages as such as this one:

    I have the sidebar on smartphones option on, and have added. hits code I found online:\

    @media only screen and (max-width: 767px) {
    .responsive #top .avia-sidebar-wrapper {
    display: block; /* Or adjust to your desired layout */
    }
    }

    That however made no difference so I deleted it.

    Is here some more recent css I Need r another setting which needs a tweak?

    Thank

    #1486478

    In reply to: Update from 2.4.1

    Hi,
    I assume that this is a new customization that you want to achieve, and not one that you have in the theme now.
    Try this solution

    Best regards,
    Mike

    GWS
    Participant

    Hi,
    We’ve added a Donate widget button to the header of a website and it looks fine on desktop, but on mobile it is positioned in the center above the logo and mobile menu burger. We’d like the logo to be at the top on mobile and larger than it is now. Then below that, the donate button below it and then the burger menu. Can you please provide guidance on how to make this happen?

    Also, is it possible to display the social media icons in the header of the mobile version?

    #1486464
    j0schi
    Participant

    Hey Folks,

    i am desperatly trying to move the category description below the products in enfold but till now i failed misserably as enfold is jsut super stubborn with this topic. I actually need this for 3 different shops…

    The optimum would look like this:
    – Category Image
    – Category Title
    – Products
    – Category description

    and all that without destroying the side bar.

    What i tryed:
    Writing functions (always ends up NOT removing the top description)
    Overwriting the Wootemplate which ends up in double images at the top no title and then the normal stuff from enfold

    https://stackoverflow.com/questions/22105230/move-category-description-to-bottom-of-page-on-wordpress

    Why is Enfold so stubborn with this? It makes 0 sense to show a long description before the products as it it very user unfriendly but one needs the description for seo purposes. I also wanna avoid using css to “hide” it as google does not like this when we display the text again and its a very unclean way to do that. If theres no other way it would also be ok for me do move everything (not jsut the description) below the product loop but without just hiding it at the top part.

    What can we do? Any help is highly appreciated.
    Kind regards
    Patrick

    #1486452

    In reply to: Underlined text

    Hey lelouxwebdesign,

    This CSS is removing the underline:

    #top .all_colors span[style*="underline;"] {
      color: #000000;
      font-size: 14px;
      font-weight: bold;
      text-decoration: none !important;
    }

    Maybe you have added it in Quick CSS?

    Best regards,
    Rikard

    #1486442

    Hey Ivana,

    Thank you for the inquiry.

    Did you modify the H3 heading element in the Enfold > Advanced Styling panel? The blog and portfolio post titles inherit the styles from the advanced styling configuration. If you want to override it, you can try using this css code:

    #top #wrap_all .all_colors h3.grid-entry-title, #top #wrap_all .all_colors h3.slide-entry-title.entry-title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        display: block;
        margin-bottom: 0;
    }

    Make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings to ensure that the changes take effect.

    Best regards,
    Ismael

    #1486433

    Hi,

    You can set the font size by editing the Special Heading element containing the text “Hi, I’m Robert”. Look for the Styling > Font Sizes > Heading Font Size option, as shown in the screenshot below.

    View post on imgur.com

    For the screenshot, you can use platforms like Savvyify, Imgur or Dropbox.

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thanks!

    Best regards,
    Ismael

    #1486373
    Loveronika
    Participant

    Hi,
    I’ve put a header photo on top of the page here https://www.thevelvetvampire.de/
    First it looks fine scaling, but on iPhone (14pro) and I think in general on mobile, there is a blank space at some time.
    How can I get rid of it?
    Thank you in advance for your help.
    Kind regards,
    Veronika

    Hi,

    Thanks for that. Could you try going through your process again to check if it works please? It looks like you will have to upload new images, as there seems to be problems with the images that are already uploaded. If it works as expected now, then the problem is likely due to the WebP Express, or Autoptimize plugins.

    Best regards,
    Rikard

    #1486351

    Hi Mike,
    sorry for delay – yes, thx, this was helpful. topic can be closed.

    cheers, Tilman

    Hi,
    If you want the font to be 200px and the menu items closer and to the left, try this CSS in your <strong style=’color:#000′>Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #top #av-burger-menu-ul {
        text-align: left;
        padding-left: 20px !important;
    }
    .html_av-overlay-full #av-burger-menu-ul li {
    padding: 10px;
    }
    #top #wrap_all #av-burger-menu-ul li {
        font-size: 200px;
    }

    After applying the css, please clear your browser cache and check.
    Screen Shot 2025 07 05 at 8.07.00 AM

    Best regards,
    Mike

    #1486341
    cnpetr
    Participant

    Hello! I have a button that opens a lightbox with a contact form within. It looks okay in desktop but in mobile the lightbox cuts off the form. I used the instructions on the button open lightbox documentation (below). No other css or theme file updates made. Is there a way to show the form at full height?

    https://kriesi.at/documentation/enfold/button/

    By the way, if you have two date pickers, one for the start date and one for the end date, you can restrict the second date picker so that it only allows dates that are later. For example, we can also remove weekends from the selection.

    here in my example the minDate/maxDate are relative Values by +7 Days and +12 Month:

    
    function my_datepicker_limits() {
    ?>
    <script type="text/javascript">
    window.addEventListener("DOMContentLoaded", function () { 
    (function($) { 
        setTimeout(function() {
            var $allDatepickers = $('.avia_datepicker');
    
            // Let's assume that the first avia_datepicker found is the start date
            var $startDateField = $allDatepickers.eq(0);
            // and the second avia_datepicker found the end date
            var $endDateField = $allDatepickers.eq(1);
    
            // Check whether we have found at least two datepicker fields
            if ($startDateField.length === 0 || $endDateField.length === 0) {
                console.warn('Could not find both Start and End datepicker fields. Ensure they are the first two .avia_datepicker elements.');
                return; // Exit script if not enough fields are found
            }
    
            // Find the container of the end date field (the <p> element in your structure)
            // This is the parent tag of the input field that also contains the label.
            var $endDateFieldContainer = $endDateField.parent('p.form_element');
    
            // Fallback if the container is not the <p> tag or is not found
            if (!$endDateFieldContainer.length) {
                $endDateFieldContainer = $endDateField; // Then we only hide the input field itself
            }
    
            function updateEndDatepickerState() {
                var selectedStartDate = $startDateField.datepicker('getDate');
                
    
                if (selectedStartDate) {
                    // Optional: Add one day to ensure that the end date is at least one day after the start date.
                    // then remove the backslashes of the next line
                    // selectedStartDate.setDate(selectedStartDate.getDate() + 1);
                  
                    // If a start date is selected, display the end date field
                    $endDateFieldContainer.css('display', 'block'); // Verwendet 'block', da <p> ein Block-Element ist
    
                    $endDateField.datepicker('option', 'minDate', selectedStartDate);
    
                    // Optional: Make sure that the end date is not before the start date.
                    var currentEndDate = $endDateField.datepicker('getDate');
                    if (currentEndDate && currentEndDate < selectedStartDate) {
                        $endDateField.datepicker('setDate', selectedStartDate);
                    }
    
                } else {
                    // If no start date is selected, hide the end date field
                    $endDateFieldContainer.css('display', 'none');
    
                    // Reset minDate of the end date date picker (e.g. to “today”)
                    $endDateField.datepicker('option', 'minDate', 0);
                }
            }
    
            if ($startDateField.data('datepicker')) {
                $startDateField.datepicker('option', {
                    beforeShowDay: $.datepicker.noWeekends,
                    minDate: "+7d", 
                    maxDate: "+12m",
                    onSelect: function(dateText, inst) {
                        // Update the state when a date is selected
                        updateEndDatepickerState();
                    },
                    onClose: function(dateText, inst) {
                        // Update the state even when closing the data picker (for robustness)
                        updateEndDatepickerState();
                    }
                });
            }
    
            if ($endDateField.data('datepicker')) {
                $endDateField.datepicker('option', {
                    // beforeShowDay: $.datepicker.noWeekends,
                    minDate: 0,
                    maxDate: "+12m"
                });
            }
    
            // Execute the function once when loading the page to set the initial state
            updateEndDatepickerState();
    
        }, 500);
    }(jQuery));
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'my_datepicker_limits', 20);
    

    see: https://webers-testseite.de/datepicker/

    Edit here – because topic is closed:

    This was also only intended as additional information. It is in case someone lands here via the search. They may have exactly this request.

    #1486319

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

    add_filter('avf_title_args', 'remove_blog_prefix_from_title', 10, 2);
    function remove_blog_prefix_from_title($title, $id = null) {
        if (is_single() && strpos($title['title'], 'Blog -') === 0) {
            // Remove "Blog -" prefix
            $title['title'] = trim(str_replace('Blog -', '', $title['title']));
        }
        return $title;
    }

    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

    #1486318

    Hi,
    I don’t think that the theme option in our documentation is what you want. The theme option displays the author image (with a link to the author page) beside the feature image of the post.
    Screen Shot 2025 07 04 at 7.16.35 AM
    But only if you choose Enfold > Blog Layout > Single post Option > Single post style > Multi Author Blog.
    If you read the documentation carefully it says to add a author box you need to add PHP & CSS:
    Screen Shot 2025 07 04 at 7.29.43 AM
    In my test this works:
    Screen Shot 2025 07 04 at 7.32.00 AM
    But you need to add the link manually in the profile:
    Screen Shot 2025 07 04 at 7.33.46 AM
    I thought the thread that I posted to above covered this with a different PHP solution, you would not want to use both at the same time.

    Best regards,
    Mike

    #1486308

    Hi,

    You have Autoptimize and Object Cache Pro active on the site, try clearing the cache from them and deactivate the plugins afterwards.

    Best regards,
    Rikard

    #1486307

    In reply to: Logo as SVG

    this is the whole css for transparency fixed header on small screens ( if header_meta is present some height values had to be corrected ) from my testpage above:

    @media only screen and (max-width:989px) {
      .responsive #top #wrap_all #header .container {
        width:95%;
        max-width:95%
      }
      #header {
        position:fixed !important;
        height:80px !important;
        max-height:80px !important
      }
      .responsive #top .av-logo-container ,
      .responsive #top .logo a,
      .responsive #top .logo img,
      .responsive #top .logo svg {
        height:80px !important;
        max-height:80px !important;
        line-height:80px !important
      }
      .responsive #top .av-main-nav .menu-item-avia-special a {
        height:80px !important;
        line-height:80px !important
      }
      #top .header_bg,
      .responsive.html_mobile_menu_tablet #top #wrap_all .av_header_transparency {
        background-color:transparent !important
      }
      .responsive.html_mobile_menu_tablet #top #wrap_all #header:not(.av_header_transparency) {
        background-color:#FFF !important
      }
      #top #header.header-scrolled .header_bg {
        background-color:#FFF !important
      }
      .responsive.html_mobile_menu_tablet #top .av_header_transparency .logo img.alternate,
      .responsive.html_mobile_menu_tablet #top .av_header_transparency .logo .subtext.avia-svg-logo-sub {
        display:block !important
      }
      .responsive.html_mobile_menu_tablet #top .av_header_transparency.av_alternate_logo_active .logo a > img,
      .responsive.html_mobile_menu_tablet #top .av_header_transparency.av_alternate_logo_active .logo a > svg {
        opacity:0
      }
      html:not(.html_header_transparency) #top .header_bg {
        background-color:#FFF !important
      }
      .responsive:not(.html_header_transparency).html_mobile_menu_tablet.html_header_top #top #main {
        padding-top:80px !important
      }
    }
    #1486306

    In reply to: Logo as SVG

    try:

    @media only screen and (max-width:989px) {
      .responsive.html_mobile_menu_tablet #top .av_header_transparency .logo img.alternate,
      .responsive.html_mobile_menu_tablet #top .av_header_transparency .logo .subtext.avia-svg-logo-sub {
        display:block !important
      }
      .responsive.html_mobile_menu_tablet #top .av_header_transparency.av_alternate_logo_active .logo a > img,
      .responsive.html_mobile_menu_tablet #top .av_header_transparency.av_alternate_logo_active .logo a > svg {
        opacity:0
      }
    }

    _______________

    in layout.css there is that rule – this has to be overwritten – if you set your header to fixed position:

    
    @media only screen and (max-width: 989px) {
      .responsive.html_mobile_menu_tablet #top .av_header_transparency .logo .subtext.avia-svg-logo-sub, 
      .responsive.html_mobile_menu_tablet #top .av_header_transparency .logo img.alternate {
        display: none;
      }
    }
    @media only screen and (max-width: 767px) {
      .responsive #top .av_header_transparency .logo .subtext.avia-svg-logo-sub, 
      .responsive #top .av_header_transparency .logo img.alternate {
        display: none;
      }
    }
    
    #1486305

    In reply to: Logo as SVG

    Hi! In my testing I deactivated the code and as I already mentioned the path versions are loaded correctly if the code is inactive. White an all screen sizes.

    With the active code in functions.php there is only the white one on large screens (the one defined for transpareny mode) and the blue one (normal logo) on screen sizes below 990px. Activated the code and you can see the behaviour online.

    Maybe you can check CSS because what’s interesting: I don’t have the lines mentioned from Guenni007 in my layout.css. See our posts above.

    Thanks in advance!

    Kind regards,
    Daniel

Viewing 30 results - 1,291 through 1,320 (of 142,938 total)