Forum Replies Created

Viewing 30 posts - 4,441 through 4,470 (of 11,513 total)
  • Author
    Posts
  • in reply to: jQuery version popup script #1280601

    Everything stayes the same but you have instead of:

    
    jQuery(window).load(function(){

    that:

    
    jQuery(window).on('load', function () {

    do not forget to clear all browser cache and to refresh (if used) the merged files in enfold (see performance tab in enfold options)

    See here in the first yellow frame: https://api.jquery.com/load-event/

    in reply to: jQuery version popup script #1280589

    See here:

    https://kriesi.at/support/topic/magnific-popup-doesnt-work-anymore/#post-1277163

    if you got other scripts with load or click event – replace them all by .on(‘load’,… and .on(‘click’, …
    PS: it is not neccessary to load this script in the header area – so wp_footer is good too.

    in reply to: Title on Elegant Blog on Single Page #1278853

    maybe a jQuery ( no SEO influence on that) solution will be ok for you –
    try this in child-theme functions.php:

    Edit: ok i see you began to insert manually – what is best for SEO Purpose too.

    in reply to: Custom colorpicker colours #1278805
    in reply to: 4 picture in a row with left and write padding #1278594

    Have you thought about editing the first of the 1/4 columns of each row so that it is set to no-margin?
    Unfortunately, the first in a row is always assigned the default value: “space between columns”.

    Be carefull to do this each time – when you change positions in your layout ( by moving the columns e.g.)

    it is because of this rule in enfold settings:

    .responsive .av_one_fourth.first + .av_one_fourth.flex_column_div {
     margin-left: 4%
    }

    so you got two options here – either you think of that to edit each first column in that layout – or you overwrite it by:
    ( and that is much more comfortable )

    .responsive #top .four-in-a-row .flex_column {
     margin-left: 0 !important
    }
    • This reply was modified 4 years, 5 months ago by Guenni007.
    in reply to: 4 picture in a row with left and write padding #1278317

    If you have seen that effect now – please tell – because i want to remove the images on copyright reasons

    Edit: done – i used now some images from pixabay.

    in reply to: 4 picture in a row with left and write padding #1278303

    2. pictures have 0 padding & margin. BUT have a 50px left and right padding to the parent container.(again exactly like the website I mentioned above)

    i do not see that on the image in your example page – as on my test page too

    in reply to: 4 picture in a row with left and write padding #1278299

    My setup above – go and open the 1/4 column and set the other image as background-image – with background-repeat: contain !

    now you will have the additonal css:

    .four-in-a-row .entry-content-wrapper .flex_column:hover img {
      opacity: 0;
      transition: opacity 1s ease;
    }
    
    .four-in-a-row .entry-content-wrapper .flex_column img {
      opacity: 1;
      transition: opacity 1s ease;
    }

    and if you like to have your own cursor type – like your example-page replace that one rule with

    .four-in-a-row .entry-content-wrapper .flex_column:hover img {
        opacity: 0;
        transition: all 1s ease;
        cursor: url(/wp-content/uploads/tile-hover.png) 60 12,auto;
    }

    see first image in test page
    Then you can link the full 1/4 column to the team member page.

    in reply to: 4 picture in a row with left and write padding #1278225

    so more and precise input for those who want and could help.

    in reply to: 4 picture in a row with left and write padding #1278224

    Use instead of the img container a code block alb. Why – are these svgs you want to use as inline svg with inside animations / hover states etc ?
    if they all got the same view-box size ( or at least the same aspect ratio ) this could be done.
    But to speculate further here would be unproductive. Either show what kind of “images” you are talking about, or a link to the corresponding page.

    See Testpage again with ( now sorry they do not have the same size as the images ) : https://webers-testseite.de/4inarow/
    hover the svgs

    in reply to: 4 picture in a row with left and write padding #1278183

    this is my Advance Layout for it:

    • give a custom class to the color section f.e. : four-in-a-row
    • you can put as many 1/4 Containers in it you like.
    • BUT: ever first 1/4 column in it – you had to set the no-margin ( no space between the columns) option again
    • The Containers 1/4 : no distance but indivual height
    • put in each 1/4 container an image , a heading , a textblock
    • the images are pure images – you can animate them if you like
    • the images should have the same dimensions!

    put this to your quick css:

    .four-in-a-row .entry-content-wrapper {
      display: flex;
      flex-flow: row wrap;
      justify-content: space-between;
    }
    
    .four-in-a-row .entry-content-wrapper:before,
    .four-in-a-row .entry-content-wrapper:after,
    .four-in-a-row .entry-content-wrapper .flex_column:before,
    .four-in-a-row .entry-content-wrapper .flex_column:after {
      display: none
    }
    
    .four-in-a-row .entry-content-wrapper .flex_column {
      float: none;
      width: unset !important;
      padding: 0;
      margin: 0;
      flex: 0 1 25%;
      display: inline-flex;  /***  the flex-item itself is a flex-container too ***/
      flex-flow: column wrap;
      justify-content: stretch;
    }
    
    .four-in-a-row .entry-content-wrapper .flex_column .av-special-heading {
      padding: 0 !important;
      margin: 0; 
    }
    
    .four-in-a-row .entry-content-wrapper .flex_column .av-special-heading,
    .four-in-a-row .entry-content-wrapper .flex_column .av_textblock_section  {
      padding: 5px 20px !important;
    }
    
    @media only screen and (max-width: 989px) {
      .four-in-a-row .entry-content-wrapper .flex_column {
        flex: 0 1 33.33%;
      }
    }
    
    @media only screen and (max-width: 767px) {
      .four-in-a-row .entry-content-wrapper .flex_column {
        flex: 0 1 50%;
      }
    }
    
    @media only screen and (max-width: 480px) {
      .four-in-a-row .entry-content-wrapper .flex_column {
        flex: 1 1 100%;
      }
    }

    if you like to start with 6 images in a row – no problem :
    start with
    flex: 0 1 16.66%;

    see result: https://webers-testseite.de/4inarow/

    in reply to: Breadcrumb position #1278066

    is it the whole breadcrump ? including Title?
    another thing : what if he has a transparency header – or a fullwidth-slider on top?

    it would be nice to have a filter on that to have breadcrumbs even on transparency header or slider on top. – Then place breadcrumb under it!
    There is still on functions-enfold.php line 1192 :
    if(!empty($transparency)) $header['header_title_bar'] = 'hidden_title_bar';

    yes on avia.js line 32 :
    you can enter postion:’bottom’ and the rest will be css – but maybe a mod knows a child-theme solution without having a whole avia.js on child-theme folder.

    new $.AviaTooltip({"class": 'avia-related-tooltip', data: 'avia-related-tooltip', position:'bottom', scope: ".related_posts, .av-share-box", attach:'element', delay:0});
    

    on line 1609 maybe that is enough to replace top with bottom – sadly this is not a pluggable function ( if function exists …) then it would be ease to have a child theme solution)

    Sorry – hope ismael or günter knows how to.

    avia.js pos1 is for top positioning since lines: 1598 and on focus 1773ff
    now it is to look if there could be a child-theme solution.
    But on reading those lines – isn’t there a bottom position as option? ( Edit – no seems to be only for image with tooltip )

    this is hard stuff – because it seems to be calculated values in the infinite vastness of the source code.
    Maybe some of the Devs knows where to find.

    li.av-share-link:hover .avia-related-tooltip  {
      transform: translateY(15px) !important;
      top: unset !important;
      margin-top: unset !important;
    }
    
    li.av-share-link:hover .avia-related-tooltip .avia-arrow-wrap {
      top: 0 !important;
      bottom: auto !important;
      transform: scaleY(-1) !important;
    }

    This quick css solution is an insufficient solution of the whole, because the original container initially appears for fractions of a moment at the top position.

    can you show me a link to a demo page of enfold ( link ) where that is shown?
    do you refer to those tooltips on hovering the share button? https://kriesi.at/themes/enfold-2017/elements/social-share-buttons/

    • This reply was modified 4 years, 5 months ago by Guenni007.
    in reply to: Add custom widget after main content, but before sidebar #1277943

    maybe Günter could insert an extra class to that page ( similar to privacy-policy page ) which is set to be the footer-page

    where then in fact the question would be how to rewrite the code so that it works with a class to body.
    i tested of course !is_page(106) but even with the ID it does not work. so !is_page(‘kontact-section’) won’t work too.

    Thank you GrandmasterA for your addition to the if-clause.
    Preventing something from emerging is definitely better here than just hiding it later.

    in reply to: Add custom widget after main content, but before sidebar #1277740

    hm – that is strange because if the footer-page is a page – then this content shouldn’t be affected.

    you can do this to child-theme functions.php below the above code :

    function remove_widget_area_from_footer_page(){
    if (is_singular('post')) {
    ?>
    <script>
    (function($){
    $(window).on('load', function () {
    	$('#footer-page .avia-builder-widget-area').remove();
    });
    })(jQuery);
    </script>
    <?php
    }}
    add_action('wp_footer', 'remove_widget_area_from_footer_page');
    in reply to: Add custom widget after main content, but before sidebar #1277723

    This should work on both post with classic editor and posts with alb editor ( don’t know if it will work for Gutenberg):

    add_filter('the_content', function($content) {
         if (is_singular('post')) {
          $content .= '[av_sidebar widget_area="my-sidebar-name"]';
         }
         return $content;
       }
    );

    And if you got more than one widget in that widget area – you can play with flex layout to have those widgets besides each other :

    #main .avia-builder-widget-area {
      display: flex;
      flex-flow: row wrap;
      justify-content: space-between;
    }
    
    #main .avia-builder-widget-area::before, 
    #main .avia-builder-widget-area::after {
      display: none;
    }
    
    #main .avia-builder-widget-area .widget {
        padding: 0;
        margin-bottom: 30px;
    }
    in reply to: Add custom widget after main content, but before sidebar #1277710

    OK here is a code that should work:

    add_filter('avf_template_builder_content', 'avf_template_builder_content_comment_mod' , 10 , 1);
    function avf_template_builder_content_comment_mod($content = "")
    {
      if(is_singular('post') || is_singular('portfolio')){
        $sidebar_content = do_shortcode("[av_sidebar widget_area='my-sidebar-name']");
        $content = $content . $sidebar_content ;
      }
      return $content;
    }

    remove the or portfolio clause if you do not want to include them!
    But the existing shortcode is only for those post/portfolios when they are made by Advanced Layout Builder

    in reply to: Add custom widget after main content, but before sidebar #1277707

    thats the reason why i erased it. ( All code goes to child-theme functions.php )

    i thought that we can use another filter of enfold:
    but this

    add_filter('avf_template_builder_content', 'avf_template_builder_content_comment_mod' , 10 , 1);
    function avf_template_builder_content_comment_mod($content = "")
    {
      if(is_singular('post') || is_singular('portfolio')){
        $sidebar_content = dynamic_sidebar( 'my-sidebar-name' );
        $content = $content . $sidebar_content ;
      }
      return $content;
    }

    inserts the widget area before ( allthough it is $content = $content . $sidebar_content ) content. ?
    Sorry – you had to wait for a mod

    in reply to: Add custom widget after main content, but before sidebar #1277691

    maybe a mod knows a better way – you can do it with wordpress standard functions this way:
    ( you don’t need to insert that dynamic side bar manually – it is done by that code allready)

    just a moment – the given code is not totaly correct – it works but it is not at the end of content in all cases – sorry

    • This reply was modified 4 years, 5 months ago by Guenni007.
    in reply to: Add custom widget after main content, but before sidebar #1277670

    The hook determines only the place where it is inserted.
    Did you create that widget-area at Widgets : “my-sidebar-name” ?

    Are these single posts created with classic editor or with advanced Layout Builder ?

    Try one post with classic editor!

    in reply to: Add custom widget after main content, but before sidebar #1277667

    try a different if-clause !

    add_action( 'ava_after_content', 'enfold_customization_category_widget_area' );
    function enfold_customization_category_widget_area() {
    	if (is_singular('post')) {
    	  dynamic_sidebar( 'my-sidebar-name' );
    	}
    }

    or use: if(is_single()){

    if you like to have that on portfolio too use:
    if(is_singular('post') || is_singular('portfolio')){

    in reply to: Animated Logo #1277639

    On your testpage this is an animated svg logo.
    You can do that with stroke-dasharray – read f.e. :
    https://css-tricks.com/svg-line-animation-works/
    https://www.cassie.codes/posts/creating-my-logo-animation/

    All animation is inside the svg itself ;)
    https://webers-webdesign.de/Logo-animiert.svg
    or see https://webers-testseite.de/pureinstall/signieren/
    on my Signature the stroke-dasharray is used as a mask over the given letters.
    But ! you have to read and study intensively how to obtain those svgs. F.e. you had to know the stroke-dashoffset etc. pp.

    in reply to: search box in mobile menu #1277425

    my code is the same Ismael posted – only the icon is replaced
    A description where something is changed is always a bit more complicated than posting the whole replacement code.

    I do not see your site – so it is difficult to give detailed advice

    in reply to: search box in mobile menu #1277322

    if you replace the second part by:

    add_action('wp_footer', 'avf_add_search_script');
    function avf_add_search_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$('.av-burger-menu-main').on('click', function() {
    		var page   = window.location.href;
    		var mobile = $('.menu-item-search-mobile');
    		var search = '<form action="'+page+'" method="get" class=""><div><input type="submit" value="" id="searchsubmit" class="button avia-font-entypo-fontello"><input type="text" id="s" name="s" value="" placeholder="Search"></div></form>';
    
    		setTimeout(function() {
    			if(mobile.find('form').length == 1) return;
    			mobile.html(search);
    		}, 500);		
    	});
    })(jQuery);
    </script>
    <?php
    }

    !!! Only difference is the value “?” – then a magifier symbol is seen

    ( get a bigger magnifier: )

    #av-burger-menu-ul #searchsubmit {
        font-size: 25px;
    }
    in reply to: search box in mobile menu #1277319

    on my end it works perfectly – and even with ajax :

    in reply to: changing header logo link #1277266

    yes this little additional information that it is a multisite would have been good to know. ;)

    in reply to: Magnific Popup doesn't work anymore #1277163

    if you are not using jQuery migrate you should edit a lot of your little snippets on which a click or load event is used
    on reasons of f.e. load is in conflict with ajax load – the load is deprecated now on jQuery 3.5.1

    use instead the .on(‘load’, …
    so on your example above:

    //—————–popup——————
    function add_custom_script(){
    ?>
    <script type=”text/javascript”>
    jQuery(window).on('load', function () {
    	jQuery(‘.open-popup-link’).magnificPopup({
    		type:’inline’,
    		midClick: true
    	});
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_script’);
Viewing 30 posts - 4,441 through 4,470 (of 11,513 total)