Forum Replies Created

Viewing 30 posts - 5,341 through 5,370 (of 11,492 total)
  • Author
    Posts
  • or better to preserve the meta box setting – see image above even for ALB created Posts and Portfolios

    because on the most cases it makes no sence on showing the featured image on a post or portfolio created with advanced layout builder

    add_filter('avf_template_builder_content', 'avf_template_builder_content_postimage_mod', 10, 1);
    function avf_template_builder_content_postimage_mod($content = "")
    {
      if(
      	is_singular('post') && ( '1' != get_post_meta( get_the_ID(), '_avia_hide_featured_image', true ) ) 
      	|| is_singular('portfolio') &&  ( '1' != get_post_meta( get_the_ID(), '_avia_hide_featured_image', true ) ) 
        ) 
      {
        $featuredImage = get_the_post_thumbnail( $the_id, 'entry_with_sidebar' );
        $content = $featuredImage . $content ;
      }
      return $content;
    }

    if you are styling the post with the classic editor you have the opportunity to choose – that the featured image is shown on the post:

    Allthough you can set this even if you style your post with the advanced layout builder (alb) – this setting has no influence and the featured image isn’t shown on the single post!

    The code for your child-theme functions.php sets this as default behavior.

    see here the topic: https://kriesi.at/support/topic/beitragsbild-eines-blogbeitrags-automatisch-anzeigen/#post-1202606

    You mean if you are using the alb even for posts.
    In that solution put into your child-theme functions.php

    add_filter('avf_template_builder_content', 'avf_template_builder_content_postimage_mod', 10, 1);
    function avf_template_builder_content_postimage_mod($content = "")
    {
      if(is_singular('post')  || is_singular('portfolio') ) {
        $featuredImage = get_the_post_thumbnail( $the_id, 'entry_with_sidebar' );
        $content = $featuredImage . $content ;
      }
      return $content;
    }

    you have the choice what image you like to have instead of entry_with_sidebar
    just replace that from the list out of : widget, square, featured, featured_large, extra_large, portfolio, portfolio_small, gallery, magazine, masonry, entry_with_sidebar, entry_without_sidebar

    ________________________________
    Excerpt from the functions.php concerning the sizes.

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );
    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );	
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );	
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>710, 'height'=>375 );
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );
    • This reply was modified 5 years, 2 months ago by Guenni007.
    in reply to: Hamburger Menu with additional Menu Item on header #1210388

    sorry i was sure that on former enfold versions this is a menu-item that stays visible in this manner.

    In addition to the above add to the quick css:

    .html_burger_menu_active .menu-item-avia-special {
        display: block !important;
    }

    and if you like to change the positions:

    .av-main-nav li {
        float: right;
    }

    maybe here is an important too needed – but test it first without

    • This reply was modified 5 years, 2 months ago by Guenni007.

    What I do not quite understand is that your entire body remains scrollable. With the New Enfold, I thought that was fixed. It means Lightbox window is only scrollable if content is too big and background is fixed.
    Did you change anything about that?
    You can see here behavior of lightbox images what i mean: https://webers-testseite.de/abcdef/

    Actually I didn’t want to give any more advice when the right click is blocked. Why are you making it hard on the one who wants to help?

    Anyway: for the lightbox image size there are some snippets depending on what is shown :

    in your child-theme functions.php you can try this:

    function avia_change_masonry_thumbnail_link($size){
      return "full";
    }
    add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_link', 10, 1);

    or that:

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

    then the full image is taken instead of the large one!
    if you like to enlarge the lightbox window – we will see when the above is done.

    in reply to: Can't drag components #1210370
    in reply to: Hamburger Menu with additional Menu Item on header #1210368

    do you know how to give a custom class to your menu items?

    On Dashboard – Appearance – Menus
    you can see on the top right postion of your browser window a slide-out button : “Screen Options”
    Click that button.

    On “Show advanced menu properties” mark “CSS Classes”

    Then you will have on each menu item an input field for class!

    Enter for your “What sets up appart” a class: menu-item-avia-special
    and see where it is shown on your menu.

    • This reply was modified 5 years, 2 months ago by Guenni007.
    in reply to: Postnavigation prev next #1210362

    it seem that getting influence via these filters the loop option is lost.

    so here is the more precise question: how do I achieve a change in the sorting option while retaining the “Loop Post Navigation”.

    in reply to: Postnavigation prev next #1210259

    and this ( these plugins ) are usually sufficient for smaller collections.
    These Plugins enables the possibility to drag and drop posts/portfolio/pages in the list-view to a given position : page order.
    It works perfectly – except for the prev. button of the first post, when I select the rotating mode it does not go to the last post but to the oldest post ( date ).
    I need this option to have a manuall order ( as in the other posting – with woocommerce products )

    But i think with the knowledge of the filter: get_previous_post_sort and get_next_post_sort or because it seems to be deprecated filtername and now the : get_{$adjacent}_post_sort is used.

    If I need help, I’ll be contacting you again

    Why do you change the name of the filter with the same functionality and – yes, it is now no longer “disable” but “prohibited” ?
    That you generally wanted to change the name of the filter to avf- is understandable, but that was already given here.
    I have to go and check now my installations, where I used the old filter name.

    To those who are interested to use this filter with contact-form-7 too:
    that one line :
    $prohibited = ( false !== strpos( $content, '[av_contact ' ) ) ? false : true;
    has to be replaced by:
    $prohibited = ( false !== strpos( $content, '[contact-form-7 ' ) || false !== strpos( $content, '[av_contact ' ) ) ? false : true;

    Das hat schon seinen Grund weshalb der andere Weg besser wäre. Denn jQuery ist Clientseitig. Dadurch sehen die Bots immernoch die alten tags!
    Wenn man es vor der Entstehung also regeln könnte wäre es denke ich besser.

    ________

    There is a reason why the other way would be better. Because jQuery is client-side. So the bots still see the old tags!
    So if you could fix it before it is created I think it would be better.

    i had to look if the filter : avf_customize_heading_settings will work on this too – then this would be a better way!
    Or : avia_default_title_filter

    you find the place to influence on helper-post-format.php line 60
    $default_heading = is_singular() ? 'h1' : 'h2';

    Bei der Seite gehe ich jetzt mal davon aus, dass ich die Antwort in deutsch geben kann.
    ich hatte da mal ein kleines script geschrieben, welches unter beibehaltung aller Attribute und Klassen das Tag ändert.
    Je spezifischer die Quelle gesetzt ist um so selektiver arbeitet das auch.

    Kleiner Denkanstoß: auch wenn es eventuell oldfashioned ist – vermeide ich persönlich das vorhandensein von mehr als einer h1 pro Seite.
    Nun zu der Umsetzung – dies in die child-theme functions.php:

    function replace_tags_with_tags(){
    ?>
    <script>
      (function($) {       
          function replaceElementTag(targetSelector, newTagString) {
            $(targetSelector).each(function(){
              var newElem = $(newTagString, {html: $(this).html()});
              $.each(this.attributes, function() {
                newElem.attr(this.name, this.value);
              });
              $(this).replaceWith(newElem);
            });
          }
          replaceElementTag('.entry-content-header h2.entry-title', '<h1></h1>'); // weitere Zeilen anfügen durch semicolon getrennt 
          replaceElementTag('.category-term-description p', '<h6></h6>');
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');

    Durch den Kommentar siehst du wie du weitere Tag Ersetzungen erreichen kannst.

    Yes – it is lost in translation :) the formal is identical to the informal
    the term : Entschuldigung, aber kein Eintrag erfüllt Deine Suchkriterien is on 4.5.7 : Entschuldigung, aber kein Eintrag erfüllt ihre Suchkriterien

    in reply to: Text Block is not showing full editing tools #1209927

    But you do know that in the first line there is a toggler to have the second line?

    in reply to: Mega Menu with Icons #1209921

    hi Ismael – does it work on default with shortcodes in the menu – or do we need to activate the shortcode option by:

    add_filter('wp_nav_menu_items', 'do_shortcode');

    Edit:
    seems to work without extra activation.

    in reply to: Postnavigation prev next #1209869

    A new german menu : Link
    I can say this, I’m German. ;)

    in reply to: Sidebar content below products #1209833

    I can’t help you here anymore. I think a mod should log in to see why the aside is in the wrong container.

    in reply to: Postnavigation prev next #1209699

    I changed on that page above ( private Content ) now manually to a date sort which works – but that would be nice to have a filter here too for orderby in combination with looping in same category.

    in reply to: Postnavigation prev next #1209660

    i try to use my old plugin for that “intuitive custom post order” – and now a advice from Günter: “Simple Custom Post Order” – it works great – but not on looping the prev – next – for the first in the order to go back to the last.

    https://kriesi.at/support/topic/is-it-possible-to-loop-the-post-navigation/#post-1096125

    It would be nice to have here an orderby option too!

    Falls es darum geht, die Sortierreihnfolge zu ändern (z.B. von post date auf title) – das geht momentan nicht.

    even if i change in functions-enfold.php line 726 the orderby to menu_order it does not have any effect.

    • This reply was modified 5 years, 2 months ago by Guenni007.
    in reply to: Add a 10px border to regular images #1209625

    Is there a page where we can see the intention?
    If you can’t make the page public, can we see it on the Enfold demo pages?

    in reply to: Sidebar content below products #1209607
    in reply to: Sidebar content below products #1209594

    hm strange because on woocommerce the aside is on default in the container.

    Don’t know where the mismatch comes from ?
    But your “aside” is outside that container:

    Have you used some hooks to influence some woocommerce settings in your functions.php?

    • This reply was modified 5 years, 2 months ago by Guenni007.
    in reply to: Theme is shaking a lot in Safari #1209488

    It is really fun to share ones knowledge here. ;)

    in reply to: Drag & drop not working #1209486

    The reason why i ask for block editor ( Gutenberg ) is that some other users here got troubles in using both Enfold ALB and Gutenberg.
    It seems that some users got the same behavior on having a scroll down when dragging the element down to the place where they want to go.
    https://kriesi.at/support/topic/how-to-hide-shortcode-section-above-avia-layout-builder/#post-1209040

    If you are having problems with scrolling down below the fold when dragging an element and the Block Editor is active, then please try adding this to your functions.php file:

    They have extra shortcodes visible in the frontend and they could not scroll down in editor.
    So again : did you use the block-editor too on your enfold options dialog?

    in reply to: Drag & drop not working #1209468

    Next suggestion : are you using block editor on enfold options?

    in reply to: Fixes Menü oben mit Hintergrund weiss #1209466

    zunächst ist dein Header ja fixiert – er shrinkt halt nur. Ausserdem hast du ja wohl dieses Headerlayout in der Seite gewählt:
    transparent oder ich schätze – eher glassy style. Das geht auf der Seite wo du im Editor Modus bist – rechte Leiste : dort steht irgendwo diese Option zur Verfügung.
    Wenn das aber so gewollt ist, und du nach dem shrinken allerdings nur einen voll weißen Header haben möchtest musst du ein wenig Quick css dazu setzen um den Header HIntergrund zu setzen.

    .header-scrolled .header_bg {
        opacity: 1 !important;
    }
    in reply to: Drag & drop not working #1209462

    Another hint: on very long page layouts i prefer to use the fullscreen layout of the alb.
    The tools are fixed on top in this case! – And you don’t have to pull them the whole way down to the end of the page

    in reply to: Drag & drop not working #1209459

    is it that you can not drag them or not drop them.

    The reason for my question is that if you can’t drag, then it’s probably a deeper problem.
    If you can’t place it everywhere, there can be several reasons for that.
    One of them is that not all elements can be placed in every other element. There are elements that are pronounced drag and drop elements – others are not. For example, you cannot place 1/2 column into a 1/1 column.

    For example, I can’t think of any element in the “Content Elements” tab that allows you to place other elements in there.

Viewing 30 posts - 5,341 through 5,370 (of 11,492 total)