Forum Replies Created

Viewing 30 posts - 1,981 through 2,010 (of 11,513 total)
  • Author
    Posts
  • in reply to: Accordion slider that is centrally updated #1412065

    That was what you meant?

    in reply to: Modify shortcodes #1412054

    Where do you load your jQuery ( see options page of enfold : Performance – “Load jQuery In Your Footer”
    if you do load it in the footer maybe a priority to that add_action solves the problem:

    replace that one line to

    add_action('wp_footer', 'ava_custom_script', 999);
    

    Edit: PS forget it – i see that the code above has an additional dot – remove that dot after av_font_icon :

    function ava_custom_script() { 
    ?>
    <script>
    	(function($){
    		$(document).ready(function() {
    			$('#top .av_font_icon a').removeAttr('aria-hidden');
    		});	
    	}(jQuery));
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script');
    in reply to: Add a link to a Subheading? #1412050

    Step 3
    – create a file inside heading’s folder called heading.php and paste the code in private content.

    Is there any reason for not make it public? I like to learn from other coding skills ;)

    in reply to: Upgrade Crashes Site: PHP Fatal Error #1412042

    can you look inside that logoslider.php and post that line 778 to see what is the issue?
    Best would be to update to latest Enfold – with php 8 alot has changed – f.e. jQuery versions are now : 3.x and inside that new jQuery there are some deprecated functions.

    in reply to: Accordion slider that is centrally updated #1412033

    If I understand you correctly, you want to create this Accordion Slider once, and then embed it several times in different pages/posts. It should then change with the one created page on all others.

    Go and test if it fits your needs if you place that accordion slider on a single page and nothing else – name that page as you like.
    click to see that page with two variations:

    On the other pages/posts insert that page with alb : page content – choose your page with that accordion.

    PS: if you like to insert that accordion to pages/posts with sidebar your insertpage must have the accordion slider in a 1/1 column ( Variant : B ) but without fullwidth elements ( color-sections, grid-row)

    here in my case i named that page my-accordion:

    in reply to: lottie files in layerslider #1411981

    sometimes those lottie animations could be downloaded as alternative files f.e.: mp4
    these mp4 may not be very big so you could even embed them as html5 video files.
    Or as image animated Gifs

    in reply to: Burger menu to appear sooner #1411965

    can you try to set it as defintion between your enfold options breakpoint and the new one
    f.e. as:

    @media only screen and (min-width: 990px) and (max-width: 1300px) {
    …
    

    or do you have a setting for header left or right? – but even then – it has to work this way you have on top in your code.
    PS : i tested it on a Enfold 5.6.3 – it works with your code too.

    Is there a page we can inspect?

    in reply to: Get Rid of Unnecessary Whitespacing on Mobile View #1411416

    this is caused by those new parallax effects.

    My recommendation is : do not enter at the first setting a value:

    these will determine the whole media screen settings !!! so even for the responsive screens when columns etc. are switched to show beneath each other.
    But on those little screen it does not make any sense.

    Therefore, I usually leave the first element unedited and set the parallax effect and positioning settings only for the following two screen widths. (2nd and 3rd screen icon) – if you switch to responsive design at 990px – then only the values below the 2nd screen icon need to be set.

    Unfortunately, this was not done in the demo, which is why I also fell into this “trap”.

    in reply to: Forced redirect of my page #1411392

    maybe the setting which page is choosen for that 404 page preserves in the background – allthough the first setting is switched back to : “no custom 404….

    try …

    in reply to: Video gallery / lightbox #1411391

    are these self hosted videos or youtube/vimeo ones ?

    in reply to: Image quality lightbox #1411389

    u bent van harte welkom

    in reply to: Image quality lightbox #1411383

    ALB – sorry means only Advanced Layout Builder – so it is the native Enfold Gallery – but i see some tabs there

    in reply to: Problem mit transparenten Header #1411381

    ich persönlich bearbeite die svgs nach in einem guten Texteditor. Dort tausche ich dann durch “suchen und ersetzen” die klassen aus und setze wenn nötig noch Gruppen Identitäten.

    I personally edit the svgs in a good text editor. There I replace the classes by “search and replace” and set group ID’s if necessary.

    in reply to: Image quality lightbox #1411379

    are these Enfold galleries? What ALB did you use to insert these images?

    in reply to: Modify shortcodes #1411319

    do you have entered this snippet to your child-theme functions.php ?

    from docu: Link

    From within your child theme, you may want to add or edit an Advanced Layout Builder element. To do so, first add the following function to your child theme’s functions.php: …
    Now add a new folder in your child theme directory called shortcodes. If you copy an element from enfold>config-templatebuilder>avia-shortcodes to this folder it will replace the one in the parent and be used instead. You can also add new ones using the other shortcode elements as examples.

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

    and just put the edited alb element directly to that subfolder : shortcodes

    in reply to: Image quality lightbox #1411109

    there are different snippets for child-theme functions.php to influence the lightbox image source file.

    for image galleries:

    function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){
        $link = wp_get_attachment_image_src($attachment->ID, "full");
        return $link;
    }
    add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);

    for masonry image galleries:

    function avia_change_masonry_thumbnail_link($size){
      return "full";
    }
    add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_link', 10, 1);

    or for single image lightbox size:

    function change_lightbox_size() {
        return "full";
    }
    add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
    in reply to: Problem mit transparenten Header #1411062

    This is a problem of adobe illustrator – they do alway set the same classes ( st0, st1 etc. )
    I do open these svgs in a good texteditor – and change those class names to something different – but be carefull – you had to think of not to change only in the styles but also in the path etc. the class=”st0″ etc.

    PS : if you go and Group inside Illustrator the parts of your logo – and name these Groups – these Names became ID’s in the svg code.

    you can have your own grapic-styles on : goto Window – Graphic Style ( Fenster – Grafikstile ) create a new one:
    then the classes are named that new style ( and not st1, st2 etc )

    Next tip: if you only want to change a fill color inside an inline svg – you do not need to upload a different logo. That is one of the big advantages of inline svg. you can select that group or class by quick css. So just use one logo – and on transparency change the fill color by css – or after scroll.

    f.e.:

    #header.av_header_transparency .st0 {
      fill: red !important;
    }
    in reply to: Set accordian to open 1 toggle at a time #1410965

    Open that accordion alb element : on first content tab there is “Behaviour” :

    in reply to: Magnific popup not working as expected in mobile #1410723

    That snippet should handle both – if you do not see it – refresh all cachings / merged files – and browser cache too.

    if that does not work – we had to give a custom-class to the anchor link itself: no-scroll
    but to be more selective a custom class on those parent container would be helpfull.

    But before testing: How did you initialize the modal opening of the hidden section?
    Edit : aha – i see …

    what kind of php version is installed? because if php 8.x. (comes with jQuery 3.x ) look to your inline popup script and replace those deprecated functions. – f.e:

    jQuery(window).load(function() {
    //replace with:
    jQuery(window).on('load', function(){
    

    under that line add :

    jQuery('.conditional_popup_link a, .popup_link a, .inline_popup, .avia-buttonrow-center.spaced-between a[href^="#"]').addClass('no-scroll');
    
    in reply to: How can I add WPML #1410555

    insgesamt also:

    .js_active.html_burger_menu #avia-menu > li.av-language-switch-item {
      display: block;
    }
    
    .responsive #top #wrap_all .av-logo-container a .language_flag img {
      width: 30px !important;
      top: 6px;
      position: relative;
      outline: 2px solid #B52828;
      height: 20px !important;
    }
    
    .av-burger-overlay-active .language_flag img {
      outline: 2px solid #FFF;
    }
    
    .responsive.av-burger-overlay-active #top #wrap_all .av-logo-container a .language_flag img {
     outline:2px solid #FFF
    }
    
    @media only screen and (max-width:767px) {
     .av-burger-overlay-active #top .header_color .av-hamburger-inner,
     .av-burger-overlay-active #top .header_color .av-hamburger-inner::before,
     .av-burger-overlay-active #top .header_color .av-hamburger-inner::after {
      background-color: #FFF
     }
    }
    in reply to: How can I add WPML #1410551

    auf screenweiten kleiner als 768 px ist der Hamburger Button in geöffnetem Zustand rot – daher nocht folgendes:

    @media only screen and (max-width:767px) {
     .av-burger-overlay-active #top .header_color .av-hamburger-inner,
     .av-burger-overlay-active #top .header_color .av-hamburger-inner::before,
     .av-burger-overlay-active #top .header_color .av-hamburger-inner::after {
      background-color: #FFF
     }
    }

    und den einen selctor müssen wir auch selectiver machen:

    .responsive.av-burger-overlay-active #top #wrap_all .av-logo-container a .language_flag img {
     outline:2px solid #FFF
    }
    in reply to: How can I add WPML #1410547

    ändere die eine Regel mal auf:
    da war der andere Selector selectiver ;)

    .responsive #top #wrap_all .av-logo-container a .language_flag img {
      width: 30px !important;
      top: 6px;
      position: relative;
      outline: 2px solid #B52828;
      height: 20px !important;
    }

    hast du was an den hamburger Farben geändert – die waren vorher weiß im geöffneten Zustand
    bin – jetzt kurz weg – nachher mehr.

    in reply to: Multiple images in light box #1410515

    on that masonry you entered : .group-1

    remove the dot on that class – and look if that is the trick.

    in reply to: Magnific popup not working as expected in mobile #1410490

    can you try to put this into your child-theme functions.php:

    add_filter( 'avf_default_lightbox_no_scroll', '__return_true' );
    
    in reply to: How can I add WPML #1410465

    Also ich habe es in einer Testinstallation mittels WPML Menü Sprachumschalter gemacht, und dann nur css angewandt.
    Eventuell hatte ich dadurch etwas andere Selectoren als Du. Lass es doch einfach jetzt so – so sieht es gut aus.

    in reply to: How can I add WPML #1410439

    OK maybe you got an older Version of WPML than mine

    first put this to your quick css:

    .js_active.html_burger_menu #avia-menu > li.av-language-switch-item {
      display: block;
    }
    
    .language_flag img {
      width: 30px !important;
      top: 6px;
      position: relative;
      outline: 2px solid #B52828;
    }
    
    .av-burger-overlay-active .language_flag img {
      outline: 2px solid #FFF;
    }
    
    .av-burger-overlay-active #menu-item-search a {
      color: #FFF !important
    }

    in reply to: How can I add WPML #1410434

    in reply to: How can I add WPML #1410424

    on WPML – Langage – there are options – what happens if you insert it to main-menu:

    in reply to: Force Download #1410418

    Unfortunately, this is not a matter that you can control yourself. Even if the pdf links have this download attribute, the browser settings determine what happens – you can force a download – but the pdf file will open anyway in the browser.

    // with file-extension
    function force_pdf_link_to_download() { 
    ?>
    <script type="text/javascript">
    window.addEventListener("DOMContentLoaded", function () { 
    (function($){
          $('a[href$=".pdf"]').each(function() {
             pdfName = $(this).attr('href').match(/\/([^\/?#]+)[^\/]*$/)[1];
             $(this).attr('download', pdfName ).attr('target', '_blank'); 
          });
    })(jQuery);
    });   
    </script>
    <?php 
    }
    add_action('wp_footer', 'force_pdf_link_to_download');

    it is not possible to add a download attribute to a link with no value – even if you try that –
    texteditor will correct it to: download="" so the script above will insert download="filename.pdf"

    Even an entry in the htaccess file does not have to be followed by the browser:

    <FilesMatch "\.(?i:pdf)$">
    ForceType application/octet-stream
    Header set Content-Disposition attachment
    </FilesMatch>

    so what could be reached is that the file downloads on click – but it will open in browser tab too.

    Perhaps a more skilled programmer than me can force this behaviour – but I think it will be futile, especially since it is supposed to be browser independent.

    in reply to: custom header #1410259

    the setting of the header_bg background is a bit strange. I would not do it this way via Enfold Options – but via quick css:

    @media only screen and (min-width: 768px) {
      #top .container.av-logo-container {
        max-width: 100% !important;
        /***  height: 120px !important;  ***/
      }
    	.header_color .header_bg {
    	  background: #fff url(//www.cybran.it/wp-content/uploads/2023/06/banner-top-ia.png);
    	  background-size: contain;
    	  background-repeat: no-repeat;
    	  background-position: center center;
    	}
    }
    
    @media only screen and (max-width: 767px) {
    	.logo img { 
    		opacity: 0; 
    	}
    	.logo a { 
    		background-image: url(//www.cybran.it/wp-content/uploads/2023/06/Logo-master.png); 
    		background-repeat: no-repeat; 
    		background-size: contain; 
    	}
    }
Viewing 30 posts - 1,981 through 2,010 (of 11,513 total)