Forum Replies Created

Viewing 30 posts - 1,561 through 1,590 (of 11,187 total)
  • Author
    Posts
  • 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, 6 months ago by Guenni007.
    in reply to: how to adjust the excerpt length in ENFOLD #1415929

    not before the filter – this is not possible – but with a different way ( that via word count) :

    function custom_excerpt_setting(){
    ?>
    <script>
    (function($){
    // trim excerpt by words
        function trimByWord(sentence,wordcount = 10) {
            var result = sentence;
            var resultArray = result.split(" ");
            if(resultArray.length > wordcount){
            resultArray = resultArray.slice(0, wordcount);
            result = resultArray.join(" ") + "...";
            }
            return result;
        }
        $(document).ready(function(){
            $('.avia-content-slider .read-more-link').each(function() {
                $(this).closest('.slide-entry').find('.entry-footer').prepend($(this));
            }); 
            
            $('.avia-content-slider .slide-entry-excerpt').each(function() {
                 $(this).text(function(index, currentText) {
                    return trimByWord(currentText);
                 });
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_excerpt_setting');

    but as said above – it is better to influence the build process – than to shift it afterwards.
    The best place for the read more link is the entry-footer.

    in reply to: how to adjust the excerpt length in ENFOLD #1415747

    yes on former attempts i shift the read-more link via jQuery

    $('.avia-content-slider .read-more-link').each(function() {
        $(this).closest('.slide-entry').find('.entry-footer').prepend($(this));
    });

    to that entry-footer – but it would be better to have it just from the beginning on that place.

    in reply to: how to adjust the excerpt length in ENFOLD #1415681

    PS: it would be nice to have a filter to limit excerpt on both : ALB posts and standard Post by word count.

    in reply to: how to adjust the excerpt length in ENFOLD #1415680

    Some thoughts on excerpt:

    I think it would be generally better to remove the read more link from the excerpts and put it in the entry-footer before the meta information. For this you would only have to change the postslider.php in some places.
    In the ALB element is queried, as should be displayed – about the ID “contents” the value will then decide later, via switch and case contribute to how the output looks.

    So if we take the decisions whether to set read-more out of the excerpts and then put them in entry-footer, that should then give us the ability to limit the excerpts according to the above filter set by Mike without cutting the read-more link.

    see here in the DOM where the read-more link is : https://webers-testseite.de/blog/

    see here the edited postslider.php on pastebin: https://pastebin.com/PL15U0NN since lines 893-917 and for the entry-footer: 1227-1243

    i hope that this will go to the next update of enfold – because it makes sense to limit excerpt length but to preserve read-more link!

    in reply to: WordPress Beitragsbild automatisch in Post anzeigen #1415624

    Nur bei Post oder auch bei Portfolio?

    in reply to: Footer Help #1415622

    insert on that copyright input fiield – f.e. at the end : [nolink]

    see: https://kriesi.at/documentation/enfold/footer/#copyrights-info

    in reply to: two custom widget areas form elements #1415554

    Yes – thanks – thats it: but as mentioned here: https://kriesi.at/support/topic/two-custom-widget-areas/#post-1415364
    i can wait for next update – to solve the issue.

    in reply to: The new Swiss Federal Act on Data Protection (FADP) #1415539

    Couldn’t you name the differences here? That would certainly be helpful.
    https://www.datenschutzkanzlei.de/schweizer-datenschutzgesetz-2023-dsgvo/

    in reply to: two custom widget areas form elements #1415364

    This is only a cosmetic issue – the function is preserved.

    in reply to: two custom widget areas form elements #1415253

    can you please check if this happens when you go to performance and choose : “use minified theme javascript …”

    in reply to: two custom widget areas form elements #1415250

    ok – then I have to look through the child-theme functions.php to see if I have set something in this regard.

    in reply to: Add phone number between logo and menu #1415218

    hallo mike – what widget area hook did you use?
    i have found that with a shrinking header it can be advantageous to do it using ava_after_main_menu.

    in reply to: Add phone number between logo and menu #1415193

    what is your header setting? Logo left menu right … ?

    try it now the path is correct to your parent directory: https://jolijnsommers.nl/wp-content/themes/enfold/style.css

    in reply to: Erroneous output, if NO logo is deposited #1415103

    Yes – this is the much better solution!

    by the way if you start with your enfold page – this might be a good moment to install the enfold child-theme! Many good tips and snippets are much easier to implement with a child theme.
    You can download it from the docu of enfold: https://kriesi.at/documentation/enfold/child-theme/
    After renaming the enfold parent folder to enfold and uploading the child – you will see on Dashboard : Themes – two Enfolds – activate the Child

    did you rename the Enfold Parent Theme to : drive-download-20230730T165038Z-001 via ftp?

    How did you upload the enfold theme? Did you upload the installable zip file

    PS: newest enfold works nice with php 8.x

    go and rename that folder via ftp to enfold ! Maybe that solves the issue.

    in reply to: Too many 301 forwards to privacy page #1415028

    aktiviere mal kurzzeitig den Wartungsmodus und schau nach ob da eine Seite hinterlegt ist – wenn ja stelle es auf “Seite auswählen” zurück und dann deaktiviere wieder den Wartungsmodus.

    PS – da du auch keine 404 Seite hast – deaktiviere diese auch. Oder heißt die Seite so wie es dort steht (“404 Seite nicht gefunden”) ?

    you are welcome

    where do you load your jQuery script?
    See on enfold options: Enfold – Performance – “Load jQuery In Your Footer” ?
    if you load it in the footer we had to set a priority that the script is loaded after jQuery
    in this case replace the last line :

    add_action('wp_footer', 'footer_menu_to_hamburger_menu');
    

    by:

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

    this is based on footer menu – so if you haven’t activated the footer menu – there will be no effect!

    in reply to: Erroneous output, if NO logo is deposited #1414974

    yes in the else statement of : if( ! empty( $logo ) ) there will be no image so no alt nor title.
    The aria label should stay :
    i replaced those lines from 822 to closing else statement with:

    	$aria = '';
    	$aria = 'aria-label="' . __( 'Fallback Logo', 'avia_framework' ) . '"';
    	
    
    	/**
    	 * Return a complete modified aria-label="" attribute string
    	 *
    	 * @since 5.6.5
    	 * @param string $aria
    	 * @return string
    	 */
    	$aria = apply_filters( 'avf_avia_logo_link_aria_label', $aria );
    
    	$logo = "<{$headline_type} class='logo bg-logo'><a href='{$link}' {$aria} >{$logo}{$sub}</a></{$headline_type}>";
    }

    see on pastebin the whole code.: https://pastebin.com/8BsvVC6T

    but i guess that Günter will fix it soon – in a better way. than i can do.

    in reply to: Erroneous output, if NO logo is deposited #1414972

    yes i can confirm that i have this too – a bit different:

    ___________________

    you can use this snippet to avoid output that fallback image or the blog_name

    function change_logo_on_empty_logo_input($logo){
    	if(empty(avia_get_option('logo'))){
    		$logo = "";
    	}
    	return $logo;
    }
    add_filter('avf_logo_final_output','change_logo_on_empty_logo_input');
    in reply to: social media icons in mobile menu #1414967

    That’s up to you: I make no claims to copyright ;)

    in reply to: social media icons in mobile menu #1414965

    the heading is only a “heading” for those bookmark links: you can see it in the screenshot of mike:
    “Social Bookmarks” thats all

    or here:

    use your footer menu for that. If you do not like to show that menu – set it to display: none. via quick css.
    it goes without saying that the hamburger menu must be set to full page overlay!

    this snippet goes to child-theme functions.php:

    function footer_menu_to_hamburger_menu(){
    ?>
    <script>
    (function($){
      $('#header').one('click', '.av-main-nav-wrap', function() {
        var isMobile          = $('.av-burger-overlay').css('display'),
            footerMenu        = $('#avia3-menu'),
            mobileMenu        = $('#av-burger-menu-ul'),
            footerMenuClone   = $('#avia3-menu').clone(true).addClass('second-burger-menu').css('display', 'block');
    
        if( footerMenu.length ){
          (footerMenuClone).insertAfter(mobileMenu);
        }
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'footer_menu_to_hamburger_menu');

    this to your quick css:

    #socket .sub_menu_socket {
      display: none
    }
    
    #top .av-burger-overlay-inner {
    	display: inline-table;
    	top: 0 !important;
    }
    
    .html_burger_menu_active #header .avia-menu .av-burger-overlay .menu-item {
      display: block !important;
    }
    
    #top .av-burger-overlay #av-burger-menu-ul {
      display: table-cell;
      vertical-align: middle !important;
      width: 50vw;
      padding: 0px 5vw !important;
      text-align: right !important;
      text-transform: uppercase;
      border-right: 1px dashed #999;  /**** a separator if you like ***/
    }
    
    #top .av-burger-overlay .second-burger-menu {
      display: table-cell !important;
      width: 50% !important;
      height: 100%;
      left: 50vw !important;
      padding: 0px 5vw;
      vertical-align: middle !important;
      text-align: left;
      text-transform: uppercase;
      z-index: 115;
    }
    
    .html_burger_menu_active #header .avia-menu .av-burger-overlay .second-burger-menu .menu-item {
      font-size: 24px;
      line-height: 2.7em;
      padding: 0.3em 0;
    }
    
    .html_burger_menu_active #header .avia-menu .av-burger-overlay .menu-item a {
      color: #FFF !important;
    }
    
    .html_burger_menu_active #header .avia-menu .av-burger-overlay .menu-item a:hover {
       opacity: 0.7;
    }
    
    .html_burger_menu_active #header .avia-menu .av-burger-overlay-inner .avia-menu-fx {
      display: none;
    }
    
    #top .av-burger-overlay-bg {
      background-image: url(/wp-content/uploads/background.jpg);
      background-repeat: no-repeat;
      background-size: cover;
      opacity: 1;
      filter: brightness(0.1);
    }
    

    see: https://webers-web.info/

    PS: the behavior of shifting the content left side was the setting before testing your requested hamburger option – it is part of non-fullpage overlay that hamburger pushes the content side

Viewing 30 posts - 1,561 through 1,590 (of 11,187 total)