Forum Replies Created

Viewing 30 posts - 511 through 540 (of 11,480 total)
  • Author
    Posts
  • in reply to: Customized widget above another widget but only on one page #1473386

    the code breaks because function names should be unique! if you got “avia_above_footer” twice in your child-theme functions.php it will come to conflict.

    If you rearange your codesnippet above you see the similarity of your codes:

    function avia_above_footer(){
        dynamic_sidebar( 'Maps' );
    }
    add_action('ava_before_footer','avia_above_footer');

    now you see that you can use the same conditional usage of your “ava_after_content”
    to avoid having a similar function name you can rename the one function – or simply combine both rules in one function.

    function avia_above_footer(){
        dynamic_sidebar( 'CTA-Footer' );
        dynamic_sidebar( 'Maps' );
    }
    add_action('ava_before_footer','avia_above_footer');

    you can now wrap the one of those lines inside a conditional setting:

    function avia_above_footer(){
    	dynamic_sidebar( 'CTA-Footer' );
    	if (is_page(3416)) {
    		dynamic_sidebar( 'maps' );
    	}
    }
    add_action('ava_before_footer','avia_above_footer');
    in reply to: MEGA MENU COLUMNS #1473382

    And maybe you decide to have the burger-menu on top:

    #top #header #av-burger-menu-ul {
      vertical-align: top;
      padding: 125px 0 !important;
    }
    in reply to: add custom icon #1473364

    i guess you have that warning on uploading your icons to fontello about compound path.
    you can edit your vector based icon f.e. in illustrator – open your svg and look at Object Menu – Compound Path – create
    i hope that this will be the names – because i’m working on german versions : Objekt – zusammengesetzter Pfad – erstellen.

    Working with Pathfinder is not enough. You had to go that way.

    ________

    Mikes Way is to substitute an existing entypo-fontello icon by an image. Big advantage – you can use the icon font to insert even colored svg icons.
    see here: https://enfold.webers-webdesign.de/colorized-font-icons/

    in reply to: MEGA MENU COLUMNS #1473324

    Well enfold provided the option to only show submenu items on hover or on click.

    If you choose click we can edit that to only show one toggle open.
    then put this to your child-theme functions.php:

    function only_one_submenu_open_on_burger(){
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () { 
      (function($) {
        $('body').on( 'click touch', '.av-active-burger-items > a', function () {
          $(this).parent('li').siblings().removeClass('av-show-submenu');
          $(this).parent('li').siblings().find('ul').slideUp( "fast");
        });
        $('body').on( 'click touch', '.av-active-burger-items .av-width-submenu > a', function () {
          $(this).closest('.sub-menu').siblings().find('li').removeClass('av-show-submenu');
          $(this).closest('.sub-menu').siblings().find('ul').slideUp( "fast");
        });
      })(jQuery);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'only_one_submenu_open_on_burger');

    after doing that i will have a look to your site to optimize if needed.

    in reply to: MEGA MENU COLUMNS #1473317

    maybe you can get comfortable with not having all top-level menu items open with a drop down.
    You could, for example, only have one of them open at a time. When you click on another one, the one open menu item closes.

    https://kriesi.at/documentation/enfold/intro-to-layout-builder/#customization

    This is a real good docu – unfortunately, there is too little research being done here

    PS : above there are the two lines listed ( 876 and 877 newest Enfold 6.0.8) – but only the 876 has been changed .
    but i guess it is easier to replace that little block of those two lines.

    in reply to: Missing “header-scrolled” class under mobile #1473250

    you have to have a child-theme avia-snippet-sticky-header.js file.
    on line 79 there is:

    remove that && ! isMobile so there is only :

    if( shrinking )
    

    if you like to minify your theme script and css files – put both files ( the script itself and the minified script to a js subfolder to your child-theme. The edited script : you can minfy the code at: https://www.toptal.com/developers/javascript-minifier

    This comes to your child-theme functions.php:

    function wp_change_sticky_header_script() {
      wp_deregister_script( 'avia-sticky-header' );
    
      $vn = avia_get_theme_version();
      $options = avia_get_option();
      $child_theme_url = get_stylesheet_directory_uri();
      $min_js = avia_minify_extension( 'js' );
    
      $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-child', "{$child_theme_url}/js/avia-snippet-sticky-header{$min_js}.js", array('avia-default'), $vn, true);
    }
    add_action( 'wp_enqueue_scripts', 'wp_change_sticky_header_script', 100 );

    maybe this is then the way it works:

    ok – try now – change to your needs and transition timings:

    /*** ===============================***/
    /* Basisstil für alle Weiter Lesen "buttons" */
    .more-link {
      display: inline-flex !important; /* Flexbox für zentrierten Inhalt */
      flex-flow: row nowrap;
      justify-content: center; /* Horizontale Zentrierung */
      align-items: center; /* Vertikale Zentrierung */
      font-weight: 800; /* Fettschrift */
      text-align: center !important;
      white-space: nowrap;
      vertical-align: middle;
      user-select: none;
      border: 2px solid #ff3366 !important; /* Rahmenfarbe */
      padding: 0.95rem 2.5rem 0.95rem 2rem !important; /* Innenabstand */
      font-size: 1rem; /* Schriftgröße */
      line-height: 1rem; /* Zeilenhöhe */
      border-radius: 100px !important; /* Abgerundete Ecken */
      color: #ffffff !important; /* Schriftfarbe Weiß */
      font-family: 'Montserrat', sans-serif; /* Schriftart */
      letter-spacing: 0.25px; /* Buchstabenabstand */
      text-transform: uppercase; /* Großbuchstaben */
      background-color: #ff3366; /* Hintergrundfarbe */
      position: relative; /* Für die Animation */
      overflow: hidden; /* Inhalt begrenzen */
      transition: all 300ms ease-in-out; /* Sanfter Übergang */
      width: auto !important;
    }
    
    /* Stil für den Text und die Pfeile */
    .more-link span {
      display:  inline-flex; /* Flexbox für Text und Pfeile */
      flex: 0 1 auto;
      transition: all 700ms ease-in-out; /* Sanfte Bewegung */
      padding: 0px;
    }
    
    .more-link:hover span {
      padding: 0 3px;
    }
    
    /* Stil für die Pfeile */
    .more-link .more-link-arrow::after {
      content: ">>"; /* Pfeile */
      font-family : inherit;
      opacity: 0; /* Unsichtbar im Standardzustand */
      visibility: hidden;
      position: absolute;
      top: 14px;
      right: 0.5ch;
      color: #ffffff; /* Pfeile in Weiß */
      font-size: inherit;
      font-weight: 800;
      line-height: inherit;
      transition: all 700ms ease-in-out;
    }
    
    /* Hover-Effekt für die Pfeile */
    .more-link:hover .more-link-arrow::after {
      visibility: visible;
      opacity: 1; /* Pfeile werden sichtbar */
     
    }
    
    .more-link:hover .read-more-text {
      transform: translateX(-1ch); /* Text verschiebt sich leicht nach links */
    }
    

    try it – if it does not work ;) you can delete it afterwards. But default folder for those child-theme ALB elements is “shortcodes”
    and if you got this snippet inside your child-theme functions.php they are loaded instead:

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

    with a slightly edited postslider.php as child-theme element you can have this DOM Structure:

    lines 876ff

    $permalink = '<div class="read-more-link"><a href="' . get_permalink( $the_id ) . '" class="more-link"><span class="read-more-text">' . __( 'Read more', 'avia_framework' ) . '</span><span class="more-link-arrow"></span></a></div>';
    $prepare_excerpt = ! empty( $entry->post_excerpt ) ? $entry->post_excerpt : avia_backend_truncate( $entry->post_content, apply_filters( 'avf_postgrid_excerpt_length', $excerpt_length ), apply_filters( 'avf_postgrid_excerpt_delimiter', ' ' ), '…', true, '' );

    then it might be possible to have the same effect and a flex will make sense.

    in reply to: iFrames and lightbox for various views #1473116

    this is based on the snippet above. – but you had to be aware that portfolio links are all url links – so the link goes then to the lightbox – and not to the portfolio page.
    You could possibly check whether it is an internal link or not.

    the snippet looks to the anchor – and to its href – if href is an image link – then all stayes as it is – if not …

    
    
    function lightbox_with_mixed_content_type() { 
    ?>
    <script type="text/javascript">
    window.addEventListener("DOMContentLoaded", function () { 
    	(function($){
    		$('.mixed-contenttype a').each(function(){
    			var anchorLink = $(this).attr('href');
    			if (/\.(jpg|png|gif|webp|jpeg)$/.test(anchorLink)) {
    				//console.log(anchorLink + " is an image link");
    			} else {
    				$(this).attr('rel', 'lightbox').addClass('mfp-iframe');
    			}
    		});	
    	})(jQuery);
    });
    </script>
    <?php 
    }
    add_action('wp_footer', 'lightbox_with_mixed_content_type', 999);

    but as mentioned above – the ajax portfolio grid will not do that .

    in reply to: iFrames and lightbox for various views #1473104

    Dear luleloki – i’m Participant as you are – so i do not see private content area.

    in reply to: iFrames and lightbox for various views #1473100

    yes but i suppose that then the av-masonry-entry is not the right selector too.
    What kind of element do you use?
    Inspect your page with developer tools and have a look what class the link itself has – on masonry it is av-masonry-entry.

    On Portfolio Grid – you had choosen the Option : !Open a preview of the entry (known as AJAX Portfolio)” these are totaly different settings. Choose “Open in lightbox” then we can talk about mixed content.
    The custom link could be done on the portfolio page itself – via “Additional Portfolio Settings” !

    etc. Each of those elements need an own solution. – sometimes there had to be a preventDefault or a stopPropagation of the existing event.

    in reply to: Problem with layer slider #1473080

    maybe you try to find that plugin

    It looks like that another plugin or your theme loads an extra copy of the jquery

    inspect your site with developer tools and look for “jquery” – perhaps you can hamper that plugin to reload another jquery

    a quick and easy way is to style that link as button :

    .more-link {
    	padding: 5px 10px !important;
    	color: var(--enfold-main-color-button-font) !important;
    	background-color: var(--enfold-main-color-primary);
    	border-radius: 5px !important;
    }
    
    .more-link:hover {
    	color: #FFF !important; 
    	opacity: .9;
    	transition: all .4s ease-in-out;
    	box-shadow: 1px 1px 5px #333;
    }

    change colors to your needs

    in reply to: touch icon #1473062

    Ismaels solution is the fastest method. But if you like:
    Former tips of Günter show me how to get an input field for an apple touch icon via child-theme functions.php:

    Bildschirmfoto-2024-12-06-um-08-01-11

    put this to your child-theme functions.php:

    function my_avf_option_page_apple_touch_icon( array $avia_elements = array()){
      $slug = "avia";
      $id = 'favicon';
      $new_element =  array(
          "slug"  => "avia",
          "name"  => __( "Apple Touch Icon", 'avia_framework' ),
          "desc"  => __("Specify an Apple Touch Icon for your site.", 'avia_framework')." <br/>".__("recommended format: .png", 'avia_framework')."<br/>".__("best format will be 180px in square", 'avia_framework'),
          "id"    => "avia_appleicon",
          "type"  => "upload",
          "label" => __( "Use Image as Apple Touch Icon", 'avia_framework' ) );  
      $found = false;
      $index = 0;
    	foreach( $avia_elements as $key => $element ){ $index++;
    	  if( isset( $element['id'] ) &&  ( $element['id'] == $id ) && isset( $element['slug'] ) && ( $element['slug'] == $slug ) ) { 
    	    $found = true;
    	    break;
    	  }
    	} 
    	if( ! $found ) { 
    		$avia_elements[] = $new_element;
    	}
    	else {
    		$avia_elements = array_merge( array_slice( $avia_elements, 0, $index ), array( $new_element ), array_slice( $avia_elements, $index  ) );
    	}
      return $avia_elements;
    }
    add_filter( 'avf_option_page_data_init', 'my_avf_option_page_apple_touch_icon', 10, 1 );
    
    function add_apple_icon_to_header(){
    ?>
    <link rel="apple-touch-icon" href="<?php echo avia_get_option('avia_appleicon'); ?>" type="<?php echo image_type_to_mime_type(exif_imagetype( avia_get_option('avia_appleicon'))); ?>">
    <?php
    }
    add_action( 'wp_head',  'add_apple_icon_to_header', 10);

    upload your image to media-library – best would be to name it: apple-touch-icon.png
    or if you do not like those automatic stylings name it: apple-touch-icon-precomposed.png
    180px in square is best – because iPhones uses those resolutions.

    in reply to: Different images for desktop and smartphone portrait #1473011

    am besten wäre, wenn alle Bilder die gleichen Größen haben!

    damit das Bild nicht die folgenden Einstellungen bei großen Screenweiten macht, wäre eine Anpassung des media-query nötig.
    (Die Grenze hängt davon ab, wann das Bild beginnt auf die kleiner Screenweite zu reagieren – das hängt von den Bilddimensionen ab und dem min-height Wert)

    (Das kann man aber auch gut empirisch herausfinden diese Grenze, indem man das Ganze zunächst testet mit einem negativen rechts wert ( right: -80px) und ohne das media-query einsetzt und den Screen solange zusammenschiebt, bis links keine Lücke mehr ist. Diese Breite überträgt man dann als media query Grenze.)

    teste mal bitte:

    @media only screen and (max-width:1405px) {
      #top .avia-fullwidth-slider .avia-slideshow li img {
        position: absolute;
        left: unset !important;
        top: 0 !important;
        right: -20px !important;
      }
    
      #top .avia-fullwidth-slider .avia-slideshow li {
      overflow: visible !important;
      height: inherit !important;
      }
    
      #top .avia-fullwidth-slider .avia-slide-wrap {
        width: 100% !important;
        height: 100% !important;
      }
    }

    die custom-class befände sich am avia-fullwidth-slider

    solltest Du mehrere Bilder unterschiedlich positionieren müssen musst du für jede li gesondert die Positionen setzen li.slide-1; li.slide-2 etc. – also
    zusätzlich :

    #top .avia-fullwidth-slider .avia-slideshow li.slide-1 img {
        right: 0 !important;
    }
    
    #top .avia-fullwidth-slider .avia-slideshow li.slide-2 img {
        right: -50px !important;
    }
    in reply to: Different images for desktop and smartphone portrait #1473006

    ja eben – das betrifft das Rätseln ;)

    in reply to: Different images for desktop and smartphone portrait #1473004

    ok – post Überschneidung – dann muss ich ein wenig rätseln …

    in reply to: Different images for desktop and smartphone portrait #1473001

    Da hier nicht soviel slidermäßig passiert – warum das Ganze nicht als Color-Section umsetzen? Als Hintergrundbild hätte man bessere Möglichkeit es responsiv zu positionieren.

    Da auch hier nur ein Sliderbild ist. Öffne deinen fullwidth slider und setze bei Styling – Slideshow Background dieses Bild ein ( cover und position right ( center etc . nach deinem Belieben))
    danach blendest du die img des sliders aus:
    (am besten über eine custom class des sliders

    .avia-fullwidth-slider.custom-class .avia-slideshow li img {
      visibility: hidden;
    }
    in reply to: Embedded Google maps aren’t rendering #1472955

    do you have influence on those settings?

    on my apache servers i do set this via htaccess file
    f.e.

    <IfModule mod_headers.c>
    Header set X-Frame-Options "sameorigin"
    Header set Referrer-Policy "strict-origin-when-cross-origin"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
    Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
    Header always set Content-Security-Policy "upgrade-insecure-requests"
    Header set Cross-Origin-Embedder-Policy "unsafe-none"
    Header set Cross-Origin-Opener-Policy "same-origin"
    Header set Cross-Origin-Resource-Policy: "same-site"
    Header always set Permissions-Policy "geolocation=(), midi=(),sync-xhr=(),accelerometer=(), gyroscope=(), magnetometer=(), camera=(), fullscreen=(self)"
    </IfModule>

    Results can be checked here f.e.: https://securityheaders.com/?q=guenterweber.com&followRedirects=on

    in reply to: Hide Post Date for Specific Category in Blog Posts #1472953

    yes – but it works – hope Günter will include it – because it would simplify many things – as the example above shows – by enabling better selection

    in reply to: iFrames and lightbox for various views #1472929

    That is what i mentioned above – that you are using a different lightbox plugin:

    First: i think you have an additional lightbox plugin working on that page. Nivo ?

    Sorry : I really don’t want to look at different plugins to work out similar tips. Unless they are ones that I personally use.

    in reply to: Modify mega menu to be full screen width #1472924

    You are welcome

    PS: if you correct the height to 195px :

    #top #header .menu-item-mega-parent:hover .avia_mega_div {
        height: 195px !important;
        opacity: 1 !important;
        transition: all .7s ease !important;
    }

    the ugly bottom is gone on mega-div – or you decide to have a transparent background for the sub-menus

    #top #wrap_all .avia_mega_div ul {
        background-color: transparent !important;
    }

    if you decide to have less height – you can get rid of backdrop-filter setting – because the sub-menus have a white background on your setting.

    in reply to: MEGA MENU COLUMNS #1472923

    if you got the newest Enfold – you can set the mega menu as display fixed:

    #top #header .avia_mega_div {
    	position: fixed !important;
    	width: 95vw;
    	top: var(--enfold-header-height);
    	left: 2vw !important;
    	right: 3vw !important;
    }

    if you got a non shrinking header you can do that too for even older enfold versions – but you had to insert your header-height as top value.

    see example : https://basis.webers-testseite.de/

    just to mention that this filter avf_customize_heading_settings is a mighty one that can change in one code all headings of your sliders.
    see codesnippet with comments on how to use on :
    https://webers-testseite.de/slider-headings-filter/

    in reply to: iFrames and lightbox for various views #1472902

    on masonry element itself – on insertion (as ismael mentioned already ) or on edit the gallery – for each gallery-item there is on the right side :

    But please note that this is a global change. It will always affect this image from now on!

    AND do not forget to :

    choose lightbox and on link settings – image link : „use custom link and fallback is image“

    in reply to: Changing Icon to Client logo icon #1472896

    you will know better where your white png is ;)

    it is not only the double button – you can insert on caption for example this:
    ( just style it on the page bottom – copy that enfold button shortcode and insert it on captions field )

    [av_button label='Click me' icon_select='yes-right-icon' icon='ue82b' font='entypo-fontello' icon_hover='aviaTBicon_hover' title_attr='' button_type='' link='manually,#' link_dynamic='' link_target='' download_file='https://' attachment='' attachment_size='' downloaded_file_name='' size='large' position='center' label_display='' size-text='' av-desktop-font-size-text='' av-medium-font-size-text='' av-small-font-size-text='' av-mini-font-size-text='' margin='' margin_sync='true' padding='' padding_sync='true' av-desktop-margin='' av-desktop-margin_sync='true' av-desktop-padding='' av-desktop-padding_sync='true' av-medium-margin='' av-medium-margin_sync='true' av-medium-padding='' av-medium-padding_sync='true' av-small-margin='' av-small-margin_sync='true' av-small-padding='' av-small-padding_sync='true' av-mini-margin='' av-mini-margin_sync='true' av-mini-padding='' av-mini-padding_sync='true' color_options='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_grad_direction='vertical' btn_custom_grad_1='#000000' btn_custom_grad_2='#ffffff' btn_custom_grad_3='' btn_custom_grad_opacity='0.7' btn_custom_bg='#444444' btn_color_bg_hover='theme-color-highlight' btn_custom_bg_hover='#444444' btn_color_font='theme-color' btn_custom_font='#ffffff' btn_color_font_hover='white' btn_custom_font_hover='#ffffff' border='' border_width='' border_width_sync='true' border_color='' border_radius='' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' animation='' animation_duration='' animation_custom_bg_color='' animation_z_index_curtain='100' hover_opacity='' sonar_effect_effect='' sonar_effect_color='' sonar_effect_duration='1' sonar_effect_scale='' sonar_effect_opac='0.5' css_position='' css_position_location=',,,' css_position_z_index='' av-desktop-css_position='' av-desktop-css_position_location=',,,' av-desktop-css_position_z_index='' av-medium-css_position='' av-medium-css_position_location=',,,' av-medium-css_position_z_index='' av-small-css_position='' av-small-css_position_location=',,,' av-small-css_position_z_index='' av-mini-css_position='' av-mini-css_position_location=',,,' av-mini-css_position_z_index='' id='' custom_class='conversion' template_class='' element_template='' one_element_template='' av_uid='av-lu0tlroy' sc_version='1.0' admin_preview_bg='']
    

    As you can see on that second image – not all of the code is needed. This is the main you need for a button – change size and position to your need and maybe remove icon_hover attribute. maybe set a custom class or ID. How to get the icon codes ? … ask.

    
    [av_button label='your button label' icon_select='yes' icon='ue859' font='entypo-fontello' icon_hover='aviaTBicon_hover' link='manually,#' link_target='' size='medium' position='center' label_display='' title_attr='' color='light' custom_bg='' custom_font='' id='abc' custom_class='def']
Viewing 30 posts - 511 through 540 (of 11,480 total)