Forum Replies Created

Viewing 30 posts - 3,931 through 3,960 (of 12,032 total)
  • Author
    Posts
  • you mean adding images via media library placed in Text Block ?

    A notice :
    so i am the supporter of the child theme files. Existing Child-Theme files reminds me that there was a customisation.
    If i change some code inside those files – in this case i not only change inside the new code – but also try to include as accurate comments as possible.
    Most of the code here has some comments on top of the first lines anyway – there I place another one that gives me a hint what it is about.
    e.g: * Comment from Guenni007: related-posts here not by tags but by category – see line 60 and 80
    and now f.e. on that lin 60:

    $tags = get_the_category($this_id); // changed - orig: wp_get_post_tags($this_id);
    
    in reply to: Dual (english/french) strange menu behavior #1343330

    how did you get multilingual support? Or – what plugin do you use for it?

    ________
    PS : on your home page – why do you set the header size this way?
    Enfold got this custom pixel value for changinig the header height:
    ( click to enlarge )

    OK smallest value here is 45px – but then the all other setting to be done are ok. f.e: the padding-top of #main etc.
    Thats why you have that 44px white distance to your banner image.

    When such adjustments are made, I always recommend staying cleanly in the child theme. Since I’m not sure it would be enough to have only the js file in the child theme shortcodes folder, I would take the rest of the files with it and relink the loading of the child theme css and js files respectively in the child theme php file.
    And now we probably come to the crux of the matter. The older files might no longer match with the other parent elements.
    However, one is not exempt from making these adjustments over and over again with updated files, whether one has applied these changes in the parent element or in the child theme files.
    Using older child elements in the child theme can work well, but it doesn’t have to.
    I would advise against it, especially for major updates.

    You see that just in this case an adjustment is available by means of icongrid.css and icongrid_old.css. There I would assume that some within the php file has also changed.
    In conclusion, I can say that I can not detect any problems with the element. Neither for desktop nor for mobile devices.

    Check if wp-rocket comes into conflict with your page that makes the trouble – try to switch off – refresh all cachings and see if that helps.

    Next: i see that you have edited the js file of that alb element by: https://kriesi.at/support/topic/icons-grids-links-not-working-for-mobile-devices-after-update-to-4-8-2-version/#post-1301568
    Did you do that as child-theme solution? or directly in the parent theme files? Did you think of doing that again with the newer versions?

    • This reply was modified 4 years ago by Guenni007.
    in reply to: Widget Title with custom icon #1343255

    if you have a link to your site in private content area – i do not see – because i’m participant too.
    But as a container like others you can set in the css code above a background-color.
    if you only want to have that icon placed in your content – you don’t need the font-icon. You can place like this your svg itself. Then you can even have multicolor icons in front.
    _________
    See here an example test page ( with a custom font of mine – you had to change it to your font-family) : https://webers-testseite.de/#footer

    and code a bit different:

    #footer .widgettitle {
      padding-left: 40px;
      position: relative;
    }
    
    #footer .widgettitle::before {
      position: absolute !important;
      width: 30px !important;
      height: 30px !important;
      top: -2px;
      left: 0;
      content: "\e844";
      font-family: "fontellico";
      font-weight: 400 !important;
      font-size: 1.2em;
      line-height: 35px;
      background-color: #f5c61b;
      color: blue;
      text-align: center;
    }
    in reply to: Widget Title with custom icon #1343214

    you can insert it via quick css and to a pseudocontainer f.e:

    #footer .widgettitle::before {
      content: "\e800";
      font-family: "dentalimpex_icons";
      color: #D02514;
      position: relative !important;
      top: 3px;
      margin-right: 5px;
      font-weight: 400 !important;
      font-size: 1.2em;
    }

    you have to adjust the code to your needs – here only footer widgets are set

    did you have a child-theme avia-snippet-sticky-header.js
    and value calculation like here: https://kriesi.at/support/topic/shrinking-of-header-amount-an-info/#post-1186874

    If you need to set these classes dynamically – even though your header should not shrink – then there is a possibility.

    in reply to: Full size image in lightbox #1343156

    But please Rikard – do check why that filter does not work in that manner.
    my used filter is only mentioned as apply_filters_deprecated f.e. in class-avia-masonry.php and

    in reply to: style.css in child theme has no effect #1343151

    i think there is only a syntax error in your quick css – f.e. a missing semicolon – or missing closing bracket – after that all codes will be not active

    in reply to: Adding code immediately after the opening tag #1343138

    have you checked if enfold does not do that if you put in that enfold options page of Google Analytics Tracking Code
    ______________
    there is a hook directly after the opening body tag: ava_after_body_opening_tag

    you can use it like this:

    add_action('ava_after_body_opening_tag', function() {
      echo '<div class="custom"></div>';
    });

    only if there is an advanced layer slider on that page – this will come first.
    can you post here the code you had to insert ( replace your IDs if there are some inside with dummies )

    maybe better – insert it to a copy of header.php directly and place that edited header.php in your child-theme folder.

    BUT – if you had to be GDPR ( DSGVO ) compliant – this methods must be adjusted.

    • This reply was modified 4 years ago by Guenni007.
    in reply to: Image Flip Box #1343100

    Yes – but only if it is needed often – more than once.
    Your quick css solution is faster when only needed for one grid flip.

    in reply to: How To Make The SubMenu Sticky On Mobile #1343099

    i use all three files – the php file is only necessary because we had to load the child-theme css and js file.
    in the css parent file there are some settings to be !important. This is not possible to overwrite from external ( quick css ) css.

    in reply to: Full size image in lightbox #1343096

    hm Nikko – and if she does not want to specify a context – ( for masonry or slideshow etc.) – her code seems to be ok.
    But my test only influences image lightbox. Even if i try to change it for slideshow by:

    add_filter("avf_alb_lightbox_image_size", function($size, $context) {
        if($context = "avia_slideshow") {
            $size = "full";
        }
        return $size;
    }, 10, 2);

    And also even if i switch off the lightbox responsive option. No change

    it has no effect.

    the old snippet still works for it:

    function change_lightbox_size() {
        return "full";
    }
    add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);

    for masonry i still take:

    function avia_change_masonry_thumbnail_lightbox_image($size){
      return "full";
    }
    add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_lightbox_image', 10, 1);
    in reply to: Horizontal gallery image caption #1343056

    So i would change Mikes Code a little.
    And to have that not on all horizontal galleries – i would give a custom-class to the ALB Element f.e.: subline-gallery

    function horizontal_gallery_subline(){
    ?>
    <script>
    (function($){
    	$('.av-horizontal-gallery.subline-gallery').css("padding-bottom" , "30px" );
    	$('.av-horizontal-gallery.subline-gallery .av-horizontal-gallery-link').css("bottom" , "50px");
    	$('.av-horizontal-gallery.subline-gallery .avia-slideshow-arrows a').css("top" , "40%");
    
    	$('.av-horizontal-gallery.subline-gallery .av-horizontal-gallery-img').each(function(){
    	    var imgTitle = $(this).attr('title');
    	    var imgAlt = $(this).attr('alt');
    	    $(this).after('<span class="title-under-image">' + imgTitle + '</span><span class="alt-under-image">' + imgAlt + '</span>').css({"margin": "-20px 0"});
    	    $(this).css({
    	        "padding-bottom"    : "20px",
    	        "background-color"  : "transparent"
    	    });
    	    $('.title-under-image').css({
    	        "display"       : "block",
    	        "text-align"    : "center",
    	        "color"         : "#000",
    	        "font-weight"   : "bold"
    	    });
    	    $('.alt-under-image').css({
    	        "display":"block",
    	        "text-align": "center",
    	        "color": "#444"
    	    });
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'horizontal_gallery_subline'); 

    test-page: https://webers-testseite.de/horizontal-gallery/

    in reply to: Horizontal gallery image caption #1343054

    Test Mikes Code
    but we had to find a solution for .av-horizontal-gallery is set to overflow: hidden
    the alt shown under the title is cut off. But if we set the overflow to visible – the element goes over the max-width of the container.
    Maybe just to give to av-horizontal-gallery a padding-bottom of 30px – and maybe you like to shift then the arrows

    #top .av-horizontal-gallery {
     padding-bottom : 30px ;
    }
    #top .avia-slideshow-arrows a {
      top: 40% ;
    }

    __________
    And by the way – your link to the other page :
    this is deprecated now:
    $(window).load(function() {
    and had to be replaced by:
    $(window).on('load', function(){

    Next : this is nearly a code that i posted – so i remember it well – put there is something wrong :
    there is an opening p-tag that has no closing p-tag ! it has to be :
    $(this).after('<p class="text-under-image">' + imgTitle + '</p>');

    in reply to: Thumbnail size LATEST NEWS widget #1343049

    yes – it is because the portfolio_small is a cropped size
    try instead f.e.: medium_large ( that is a wordpress file-size ) or
    masonry ( you see on functions.php line 220 that crop is set to false.
    or if you like – generate a new file-size that is not croped

    add_image_size( 'news_size', 175, 260, false );
    
    function my_custom_sizes( $sizes ) {
        return array_merge( $sizes, array(
            'news_size' => __( 'News Size' ),
        ));
    }
    add_filter( 'image_size_names_choose', 'my_custom_sizes' );

    in combination then with the code above:

    function my_avf_newsbox_image_size( $image_size, array $args, array $instance ){
      if( $args['widget_id'] == ( 'portfoliobox-3' || 'newsbox-2' || 'newsbox-5' ) ){
        $image_size = 'news_size';
      }
      return $image_size;
    }
    add_filter( 'avf_newsbox_image_size', 'my_avf_newsbox_image_size', 10, 3 );

    but in this case you had to regenerate the thumbnails on existing images.
    f.e.: with https://en-gb.wordpress.org/plugins/regenerate-thumbnails-advanced/
    See results with news_size on: https://webers-testseite.de/#footer

    Reset your css settings in this case first and see what happens.
    _________________________
    the last part ( my_custom_sizes ) is only to have that image size as a choice in media-library insertion :

    in reply to: How To Make The SubMenu Sticky On Mobile #1342985

    now i have made the changes to Enfold 4.9 files:

    and download all three files from pastebin here ( based on enfold 4.9) :
    menu.php : lookdownload
    menu.js : lookdownload
    menu.css : lookdownload

    see: https://webers-testseite.de/transparent-header/

    ( with child-theme shortcodes loading as mentioned in my first post – see: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb )

    again here my question to the devs : is it realy necessary to have on menu.css set these rules ( top and position ) for media-query to be !important ?
    f.e. .responsive #top .av-switch-990.av-submenu-container{top: auto; position: relative; height:auto; min-height:0; margin-bottom: -1px;}
    ___________
    and maybe again the question, if new filters and actions are introduced ( they also appear in the changelog ) can you give an example for the application on f.e.: Github – maybe in the comment what it is meant for. Thanks

    in reply to: How To Make The SubMenu Sticky On Mobile #1342979

    hm – i can not believe this – because what i see on class-template-builder.php on line : 675 – this ava_builder_shortcode_files_loaded
    is not a filter – the filter is still: avia_load_shortcodes

    in reply to: Image Flip Box #1342977

    it is a complete substitution for it. The mistake was that in my setup I only placed images with caption in the content. Thus the selector was not prepared for all cases.
    The out-commented rule for the subtitle in that css code – is, if you only want the title on frontside

    in reply to: Image Flip Box #1342854

    Edit : I’m going to clean up the code a bit; because when I made these adjustments, there were a lot less options in the ALB element itself. So I guess you can remove font colors and background colors now, I’ll check that right now.
    box-shadow option is possible too in alb element.

    in reply to: Image Flip Box #1342843

    On that other link : you can add everything you like to the backside content – there only has to be one image inside that will be the background-image for the frontside.

    Ah – i see – on my example there is a caption on the first image. I will see how the code is on first image with no caption.

    Edit: Now there is a modified css on the link page. I removed the background-color from code – because you can set it on alb element yourself.

    in reply to: Image Flip Box #1342766

    by the way – that will be a nice feature to have. An input field for a frontside background image. If it is set the icon will be set to display none.

    in reply to: Image Flip Box #1342764

    i would have done that by using the icon grid alb element too – but i place in the background content two images – the first placed image i take for the background-image of the front by jQuery script.

    not to have that on all icon grids – i give the element a custom class – f.e.: icongrid-frontimage

    function insert_frontside_image(){
    ?>
    <script>
    (function($){
    $(document).ready(function(){ 
    	$('.icongrid-frontimage .article-icon-entry .avia-icongrid-front').each(function(){
    		var backside_img = $(this).next().find('img:first-child').attr('src');
    		$(this).find('.avia-icongrid-icon').css('display', 'none');
    		$(this).prepend('<div class="frontside_background"></div>');
    		$(this).find('.frontside_background').css({
    			'background-image': 'url('+backside_img+')',
    		})
    	});	
    });			
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'insert_frontside_image');

    the rest is quick css – see resultpage: https://webers-testseite.de/icongrid-with-frontimage/

    PS: If you use the element only once, I can’t recommend this solution. But if you want to use the background image on the front often, it has the advantage of being able to select the images via Media Library.
    If you are interested i will post the css code here too.
    ( see f.e. too: https://consulting.webers-testseite.de/leistungen2/ )

    in reply to: Thumbnail size LATEST NEWS widget #1342755

    you can influence the source of the thumbnail used for the widget by this snippet in your child-theme functions.php:

    function my_avf_newsbox_image_size( $image_size, array $args, array $instance ){
      if( $args['widget_id'] == ( 'portfoliobox-3' || 'newsbox-2' || 'newsbox-5' ) ){
        $image_size = 'portfolio_small';
      }
      return $image_size;
    }
    add_filter( 'avf_newsbox_image_size', 'my_avf_newsbox_image_size', 10, 3 );

    ( the two “pipes” : || means “or” as logical operator )

    Looking to your page i see that this widget in your footer is in newsbox-5
    now choose an image-size ( above it is portfolio_small ) which fits to your needs ( see parent functions.php on lines : 211ff )

    you see on the example code that the filter avf_newsbox_image_size is not only for newsbox images – but for the portfolioboxes too.

    PS: you had to style it with that new image source again – a bit different to that from your code above

    in reply to: Animation on element #1342555

    you can look inside the shortcodes.css file form lines 663ff
    those classes:
    fade-in , pop-up , top-to-bottom , bottom-to-top , left-to-right , right-to-left , av-rotateIn , av-rotateInUpLeft , av-rotateInUpRight
    the keyframe names are under those classes …
    _____
    yes – but on the classes input field classes that are on the same elment are added by only ohne space between without dots.
    you can see it on mikes first image above:
    https://kriesi.at/support/topic/animation-on-element/#post-1342496

    in reply to: Animation on element #1342494

    Sometimes these keyframe animations starts when an eventlistner is fired. One of these events is when an element appears in the viewport, or a certain scroll distance has been completed. Sometimes there are little tools in themes that observe whether an element appears in the viewport or not.
    Thus, Enfold is embedded a script that can perform such tasks. ( keyword is: waypoint script ).
    You can see it in shortcodes.js file on line 232ff
    and the helper function itself is on line 705ff

    in reply to: Problem with update 4.9 in footer #1342492

    To have only a copy of footer.php or header.php in the child-theme directory is alway possible. The point is – why are there child-theme versions.
    If this involved adapting the theme to your own needs, then unfortunately you have to implement this again in newer versions of the parent theme.
    For example, a new feature has been added by implementing the Curtain effect to the footer. This innovation, however, required new code for parent theme files. Unfortunately, it is not always possible to introduce all new features into the theme in a downward compatible way.
    ______
    For example, if you look at my footer on this test page: there I gave the theme a second footer widget row, which I can even set up via the Enfold settings. I always have to think about that when a new version is released.
    https://webers-testseite.de/#footer

    in reply to: Localize Google Fonts #1342269

    if you only use these selfhosted fonts – you can hamper Enfold to load google fonts at all.

    this here seems to be the actual prefered snippet:

    function my_output_google_webfonts_script( $activate ){
      return false;
    }
    add_filter( 'avf_output_google_webfonts_script', 'my_output_google_webfonts_script', 10, 1 );
    • This reply was modified 3 years, 3 months ago by Yigit.
Viewing 30 posts - 3,931 through 3,960 (of 12,032 total)