Forum Replies Created

Viewing 30 posts - 1,861 through 1,890 (of 11,513 total)
  • Author
    Posts
  • you see that the if clause is allready an array – so comma separated id’s will do that job:

    …
    if ( is_page(array(1132, 6481)) ) {
    

    did you adjust the code to your ACF ?

    as I said above, it is likely that my code does not work in the loop. – I’ll have to call in someone with more programming skills – sorry.

    by the way: please use the code tag to post snippets . it is hard to read ( and a lot of signs are changed ) if you do not.

    Next: your links above goes to a different url – the one in your screenshot is password portected

    Did you look to that page logged out ? because the above if-clause includes the if not admin

    in reply to: How to exclude current posts from related posts grid #1418022

    Thanks Mike & Guenni007, for the help and support, it helped me a lot to solve the issue.

    would you please share your working solution …

    it is hard to give advice without a working test environment to check.

    Can you try :

    function pre_sort_filter_escorted_vacations($query) { 
      if(!is_admin() && $query->is_main_query()) {
        $post_type = $wp_query->query['post_type'];
        if ( $post_type == 'escorted-vacations') {
          $query->set('meta_key', 'start_date');
          $query->set('orderby', 'meta_value_num');
          $query->set('order', 'ASC');
        } 
      } 
    }
    add_action('pre_get_posts', 'pre_sort_filter_escorted_vacations');

    do not know if this works – then if it works on the loop ( i don’t think so )

    in reply to: How to exclude current posts from related posts grid #1418000

    or Mike …. maybe it is first needed to include the CPT to search – as you have done it here: https://kriesi.at/support/topic/seiten-aus-der-enfold-suche-ausschliesen/#post-1396760

    in reply to: Language selection header Mobile version #1417965

    you got on your quick css some rules
    because of an enfold rule is more specific than your setting – be more selective too on your settings !

    Replace your settings with:

    .responsive #top #header_meta .sub_menu li.flag-deutsch {
        background: url('//www.elianafe.com/wp-content/uploads/2023/08/deutschland-sized.png') center center no-repeat;
        height: 50px;
        width: 50px;
        text-indent: -9999em;
        background-size: contain;
    }
    
    .responsive #top #header_meta  .sub_menu .flag-english {
        background: url('//www.elianafe.com/wp-content/uploads/2023/08/vereinigtes-konigreich-sized.png') center center no-repeat;
        height: 50px;
        width: 50px;
        text-indent: -9999em;
        background-size: contain;
    }
    
    #top .flag-deutsch a, #top .flag-english a {
      display: block;
      height: 100%;
      background: none !important;   /*** because of that layout.css rule your setting on li will otherwise be inherited to that a element ***/
    }
    

    you see that selector got two id’s and that overwrites your background setting with only one id in the selector
    it is more selective!

    in reply to: Contact Form – Date – start selection a week later #1417963

    there are nice plugins to influence datepicker f.e.: Datepicker by input

    but you can insert that snippet to your child-theme functions.php
    ( if you get rid of those outcommented signs “//” – the weekends will be unavailable too ):
    ( there is a prebuild option for no Weekend)

    function my_datepicker_defaults() {
    ?>
    <script type="text/javascript">
    window.addEventListener("DOMContentLoaded", function () { 
    (function($) {        
        $.datepicker.setDefaults({
            // beforeShowDay: $.datepicker.noWeekends,
            minDate: "+7d",
            maxDate: "+12m",
        });          
    }(jQuery)); 
    }); 
    </script>
    <?php
    }
    add_action('wp_footer', 'my_datepicker_defaults', 20);

    if you do not need maxDate remove that line

    in reply to: Exclude Portfolios from Tag cloud results #1417962
    in reply to: How to exclude current posts from related posts grid #1417928

    no – but if you go further to f.e. “Rail across Canada” that Post is still on the slider.
    So try to include your CPT ( guess it is: escorted-vacations) to the alb handling

    in reply to: How to exclude current posts from related posts grid #1417887

    i guess not – maybe the custom-post type had to be first included to ALB support:

    Replace the “event” with the name of your CPT:

    function avf_alb_supported_post_types_mod( array $supported_post_types ) {
      $supported_post_types[] = 'event';
      return $supported_post_types;
    }
    add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);
    
    function avf_metabox_layout_post_types_mod( array $supported_post_types ) {
      $supported_post_types[] = 'event';
      return $supported_post_types;
    }
    add_filter('avf_metabox_layout_post_types', 'avf_metabox_layout_post_types_mod', 10, 1);
    
    in reply to: How to exclude current posts from related posts grid #1417857

    Try this snippet in your child-theme functions.php:

    function ava_exclude_current_post($query) {
      if (is_singular('post') || is_singular('portfolio') ) {  
        $exclude = avia_get_the_ID();
        $query->set( 'post__not_in', array($exclude) );
      }
    }
    add_action('pre_get_posts', 'ava_exclude_current_post');
    // in the if-clause you can use aswell  :   if(is_single()){
     

    for subtitle there is a filter: avf_sc_icongrid_subtitle_heading_tag
    sadly there is no filter for title_heading_tag – but you can solve that as you said – see screenshot of Mike

    btw: maybe the first snippet of mike here: Link – does not work – because a priority is missing – when you load your jQuery in the footer ;)
    using for last line then :

    
    …
    add_action('wp_footer', 'custom_icongrid_subtitle_script', 999);
    
    in reply to: Disable Google Fonts #1417797

    There can be several reasons why Google Fonts are loaded externally.
    First of all – have you activated your uploaded fonts at the end of the list in Enfold – Fonts? – Many upload Open-Sans but then select the default font in the list instead of the uploaded one.
    2.) try this snippet in your child-theme functions.php:

    function my_output_google_webfonts_script( $activate ){
      return false;
    }
    add_filter( 'avf_output_google_webfonts_script', 'my_output_google_webfonts_script', 10, 1 );

    3.). If you are using Google Apps ( Maps, ReCaptcha, Analytics etc. pp) these apps can download their own fonts via Google Server!
    a) you can use for gmaps on child-theme functions.php:

    add_filter( 'avf_gmaps_no_google_fonts', '__return_true' );
    

    4.) …. better you tell us what you use from Google as an app to give further advice to prevent fonts from loading

    in reply to: Lock Theme Settings (Theme Options) #1417783

    hast du das hier schon ausprobiert:

    dann bekommt selbst ein Editor nur das hier zu sehen:
    – also nur Bearbeitungen ( als Editor natürlich auch der Beiträge der Anderen User) möglich.

    • This reply was modified 1 year, 10 months ago by Guenni007.
    in reply to: Gallery – custom link #1417779

    Thanks – you can close the topic now

    or does that filter can do that job?
    avf_alb_masonry_img_custom_link_fallback

    and how to set then to lightbox if fallback … ?

    Edit: on one page it works this way as wanted – so i had to inspect the other installation what hampered the desired way.

    • This reply was modified 1 year, 9 months ago by Guenni007.
    in reply to: Gallery – custom link #1417724

    I think this would be a good option to choose. So – yes, please pass it on to Günter

    in reply to: Gallery – custom link #1417543

    by the way – if the setting: “use custom link – fallback is image link” – is made – it would be nice if there is an option to preserve the lightbox behavior on images without custom_link !

    “custom-link fallback is lightbox image link”. that would be a great option

    in reply to: Gallery – custom link #1417530

    ok on a fresh install – it works – so I think there must be something in the child theme functions.php that is preventing it from working correctly.

    Edit: ok – this known snippet to set the lightbox size to full from 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);

    disturbs the correct behavior of custom_link setting.

    in reply to: Adding a custom font to a special heading #1417470

    but on google page you see that the css for it is:

    font-family: 'Archivo', sans-serif;
    font-family: 'Archivo Black', sans-serif;

    so test both

    i uploaded the variable font and there it is only “archivo”

    i see that your inline-css is not created on the slideshow list elements ( goes to opacity: 1 and visibility: visible ) – so Mikes hint seems to be a good idea – to see what hampers the (animated ) transformation of the list elements.

    Element {
      visibility: visible;
      opacity: 1;
      transition: none 0s ease 0s;
      transform: translateZ(0px);
    }
    in reply to: Mega Menu only Vertical #1416929

    Was ich aber auf deiner Startseite sehe ist doch ein ALB: Submenü – oder?
    Wo wäre da das Menü inclusive der Mega-Menü Setzung?
    Die Option Mega-Menu gibt es bei Sub-Menü nicht.

    in reply to: Entry with Post Format “Video” with video thumbnail #1416868

    there are plugins for that. But if your preview video is not too long and from big dimensions – a lot of external hoster ( youtube, vimeo) offer the option to generate from a custom part (6s) of the video a gif transform. You can download that gif and use it as featured image.
    See f.e.: https://webers-testseite.de/blog/

    if you like to selfhost a video – you can convert a part of your video to gif by: https://ezgif.com/video-to-gif
    For featured images there is a limitation of size (guess it is 320px width) to use a gif as featured image.

    Big advantage of a gif : if you had to be compliant with GDPR (DSGVO) a gif Preview does not need to have opt in.

    in reply to: how to set a very small shrink factor … #1416845

    but the snippet above works – your objection just says that if the value is between 0 and 1 by parseInt that is set to 0.
    You’re right, I should have looked in there. With setting a multiplicator , I generally feel uncomfortable setting the zero in case the value is used elsewhere for a division.

    in reply to: Change the logo while scrolling #1416394

    you can download the logo from above and use it! I do remove now from the example page – and from my initial Test Page your logo except from the link:
    https://clean.webers-testseite.de/eichenhaus/

    If you have seen it – i will remove my solution for it.

    in reply to: Change the logo while scrolling #1416276

    see result here – ( it is up to you how to place path inside that svg )
    https://clean.webers-testseite.de/eichenhaus/

    it just uses the header-scrolled class to change the logo inside:

    #top #header  #Bild-Logo,
    #top #header  #Text-Logo {
      transition: all 1s ease;
    }
    #top #header.header-scrolled #Bild-Logo {
      fill-opacity: 0;
    }
    #top #header.header-scrolled #Text-Logo {
      fill-opacity: 1 !important
    }

    and with the same logo – on transparency change fill option:

    #top #header:not(.header-scrolled).av_header_transparency  #Eichenhaus-Logo .eh0 {
      fill: #fff
    }

    see Startpage of the link above

    in reply to: Change the logo while scrolling #1416274

    or – even better to have both parts of your logo inside the svg code:

    Structure:

    you see that the Text-Logo has fill-opacity of zero – you can change that by quick css to 1 and the other to zero

    in reply to: Change the logo while scrolling #1416273

    on your initial page there is a svg Logo on top right. ( The “S” from Schreinerei is not well verctorized – if you know the Font-Types you can create a good svg logo again.

    if you look to the DOM of that svg ( svgs are xml based ) you see that i have your brand in an extra group with ID: “Bildmarke”
    you can influence inline svgs via quick css!

    in reply to: Change the logo while scrolling #1416268

    i would do that via svg logo – and just with shrink event.
    there are classes added ( or removed ) if header changes. So no additional script is needed.

    in reply to: After Update Textlogo don’t work #1415980

    i think it is part of that discussion here: https://kriesi.at/support/topic/erroneous-output-if-no-logo-is-deposited/

    you can try that in the meantime:
    this is based on what you entered to customizer as blog name – but you can chante it to a given h1
    just insert for : $logo_heading = "Musikschule Jüttner & Co.";

    function change_logo_on_empty_logo_input($logo){
      $link = apply_filters( 'avf_logo_link', home_url( '/' ) );
      $logo_heading = get_bloginfo( 'name', 'display' );
    
      if(empty(avia_get_option('logo'))){
        $logo = '<span class="logo text-logo"><a href="'.$link.'"><h1>'.$logo_heading.'</h1></a></span>';
      }
      return $logo;
    }
    add_filter('avf_logo_final_output','change_logo_on_empty_logo_input');

    and for quick css:

    .logo.text-logo a {
      line-height: inherit !important;
      max-height: inherit !important;
    }
    
    #top .logo.text-logo a h1 {
      margin-bottom: 0 !important;
      display: inline;
      vertical-align: middle;
    }
    in reply to: After Update Textlogo don’t work #1415978

    . just one moment – i had to see how to insert – with preserving shrinking header option

    • This reply was modified 1 year, 11 months ago by Guenni007.
Viewing 30 posts - 1,861 through 1,890 (of 11,513 total)