Forum Replies Created

Viewing 30 posts - 3,871 through 3,900 (of 11,986 total)
  • Author
    Posts
  • are you familiar with the enfold debug mode?
    Then please post the whole enfold shortcode of that page here – and i will import it on a test environment of mine.
    Then i can better inspect – if that error is reproducable.

    Next – one big different is that we have now on
    enfold/config-templatebuilder/avia-shortcodes/icongrid/
    4 files with one icongrid_old.css and one icongrid.css – and the difference is immense between those files.
    there must be the reason for your troubles.

    PS:
    i’m participant as you – so i do not see private Content area that you posted – including logins etc.

    in reply to: How to custom sort & display YouTube videos daily #1343795

    These are requirements that can be better realised by special plug-ins.
    I use on that https://wordpress.org/plugins/youtube-embed-plus/
    you can see here a page of a friend – where i set up with enfold a “youtube-channel” page: Link
    The Free Version of this plugin is mighty enough to fullfill a lot of your requests.

    i do not understand the 3rd image.
    if you like to add a new portfolio ( yes – even this is a custom post type ) you go and create a new portfolio.
    Why don’t you create new post with new “hunde” ?
    in this list there must be the new cpt’s – aren’t there?

    or is image3 made this way? ( you erased the whole permalink )

    why don’t you layout it you want on ( image3 ) and save the whole page as template.

    you then can create a new “hunde” page – click on template and then on “hunde-Template” to insert the whole layout.

    Big Advantage is that you can save these templates via Enfold (Child) – Import/Export : “Export Layout Builder Templates”

    can i use png

    https://kriesi.at/support/topic/ho-to-add-my-own-icon-instead-of-the-entypo-fontello-icons/#post-1343446

    Without more details, or links to the page to which the problem refers, I can expect you to be able to transfer enough to adapt it to your specific case.
    I think that the descriptions are precise enough; if they are read.

    The one thing you had to know is that enfolds nomenklatur for those social links is always:
    av-social-link-xyz
    the xyz is the name of the social media and that will be at your list point as class – e.g: av-social-link-twitter; av-social-link-facebook; av-social-link-linkedin … etc.

    in reply to: Empty .mo translation file #1343625

    But you edit the po files ( not mo ) – after editing the po file with e.g. poedit this creates the po and mo files. Both files had to be uploaded.

    btw: you can have your own child-theme lang folder and to have this active you can use in your child-theme functions.php:

    function overwrite_language_file_child_theme() {
        $lang = get_stylesheet_directory().'/lang';
        return $lang;
    }
    add_filter('ava_theme_textdomain_path', 'overwrite_language_file_child_theme');

    see : docu

    in reply to: Slider with clickable captions #1343599

    This refers to the easy slider?

    on fontello you can upload svg files ( they have to meet a few conditions there, but then you can also make an iconfont out of any monochrome svg).
    you can upload to fontello svg’s by drag&drop into that custom icons field.

    after adding all your wanted svg files – mark them on fontello and give a name to the new icon-font.
    Upload that icon-font to enfold ( import/export – Icon font manager )

    after that – go and read on the docu how to get for an existing icon a different one.

    see here a result for socket ( not the footer links – those are shariff links to social media ) social links and custom instagram icon:
    https://webers-testseite.de/#socket

    #top #wrap_all #socket .social_bookmarks a {
     display: block;
    }
    #top #wrap_all #socket .av-social-link-instagram a:before {
     content:"";
     display:block;
     width:15px;
     height:15px;
     left: 50%;
     top: 50%;
     background:url('/wp-content/uploads/custom-instagram.png') no-repeat center center;
     background-size:contain;
     position: relative;
     transform: translate(-50%,-50%);
    }
    #top #wrap_all #socket .av-social-link-instagram:hover a {
     background-color: purple
    }

    more easy than using some quick css code ?
    just uploading an image file for your icon to replace.
    The one thing you had to know is that enfolds nomenklatur for those social links is always:
    av-social-link-xyz
    the xyz is the name of the social media and that will be at your list point as class – e.g: av-social-link-twitter; av-social-link-facebook; av-social-link-linkedin … etc.
    The way over a new icon-font is more complex – but has some advantages.
    If you got a svg file you can upload that to fontello to create an own icon-font.

    Where do you want to place the shortcode?
    Is it always the same place? E.g. always in single posts each time before the content? etc.

    There are some filters (e.g.: avf_template_builder_content) or some hooks you can use to insert shortcodes via do_shortcode.
    So if you could be a bit more specific about what you want to achieve, there might be a solution.

    in reply to: H1 Font too large on Mobile #1343381

    next tip – if you know the right selector for those headings you can be very specific on changing those font-sizes by setting media query for it.

    f.e.:

    @media only screen and (min-width:768px) {
      h1.av-special-heading-tag {
        font-size: clamp(24px, 3.5vw, 50px);
      }
    }
    
    @media only screen and (max-width:767px) {
      h1.av-special-heading-tag {
        font-size: clamp(22px, 6vw, 50px);
      }
    }

    with a decision to make it via flexible font-size definition etc. pp

    in reply to: H1 Font too large on Mobile #1343380

    You have seen that new typography tab on enfold (child) – general styling:
    and it is for all pages/posts a setting.
    (click to enlarge)

    a lot of alb elements with headings do have a similar input field on styling tab f.e. heading alb element:

    you can replace these enfold predefined icons by quick css
    Then you can even use multicolor images
    f.e. a different telegram icon: see docu
    scroll to: “In case of using an image”

    #top #wrap_all .av-social-link-telegram a:before{
        content: "";
        width: 20px;
        height: 20px;
        display: inline-block;
        vertical-align: middle;
        background: url(/wp-content/uploads/custom-telegram.png) no-repeat center center;
        background-size: contain;
    }
    
    #top #wrap_all .av-social-link-telegram:hover a {
      /*** if needed ***/
    }

    do you have allready a custum post type registered in your theme ?
    Or is it a CPT by a plugin?

    You can include those CPTs to be supported by ALB _ see: Docu
    f.e. if your CPT name is event:

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

    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 3 years, 11 months 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 3 years, 11 months 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/

Viewing 30 posts - 3,871 through 3,900 (of 11,986 total)