Forum Replies Created

Viewing 30 posts - 5,701 through 5,730 (of 11,484 total)
  • Author
    Posts
  • in reply to: Add caption in lightbox under image in masonry gallery #1167666

    This is a bit more than you like to have but it shows you how you can have influence on different settings using Enfold specific classes – and even you can change the markup for lightbox on that
    my example page is on id: 36548 so if you want to have that globally – get rid of if-clause
    look to this example code:

    function popup_masonry_gallery() { 
    if(is_page(36548)){
    ?>
    <script type="text/javascript">
    (function($){
    $(window).load(function(){  
        $('a.av-masonry-entry.lightbox-added').magnificPopup({
        type: 'image',
    		image: {
            titleSrc: false,
            markup: '<div class="mfp-figure">'+
                      '<div class="mfp-close"></div>'+
                      '<div class="mfp-top-bar"></div>'+
                      '<div class="mfp-img"></div>'+
                      '<div class="mfp-bottom-bar">'+
                        '<div class="mfp-title"></div>'+
                        '<div class="mfp-counter"></div>'+
                      '</div>'+
                    '</div>',
        },
        mainClass:          'avia-popup mfp-zoom-in mfp-image-loaded',
        closeOnContentClick:  false,
        midClick:         true,
    
        gallery: {
          enabled:      true
        },
    
        callbacks: {
    		markupParse: function (template, values, item) {
    			values.title = item.el.find('img').attr('alt') + '<br>' + item.el.closest('.av-masonry-entry').find('.av-masonry-entry-content').text();
    		},
    
    		// this - is Magnific Popup object.
            change: function() {
                $(this.content)
                    .find('.mfp-top-bar')
                    .html(
                        '<h2>' +
                            $(this.currItem.el).attr('title') +
                        '</h2>'
                    );
            },
          	buildControls: function() {
    	        // re-appends controls inside the main container
    	        this.arrowLeft.appendTo(this.contentContainer);
    	        this.arrowRight.appendTo(this.contentContainer);
          	},
        },
      }); 
      // close the iframe window
      $(document).on('click', '.popup-modal-dismiss', function (e) { 
        $.magnificPopup.close();
      });
    });
    })(jQuery);
    </script>
    <?php }}
    add_action('wp_footer', 'popup_masonry_gallery');

    first i get my selector – as on enfold it is the class lightbox-added
    then i declare a new markup for that popup with f.e. a top-bar
    on the callbacks i set the mfp-title to the image alt attribute and in the second line i look for the enfold description place – and get the text from: av-masonry-entry-content
    in the new top-bar i place the img title as mfp-title !

    see result: https://webers-testseite.de/lightboxes/

    click the first image – you will see where the texts comes from in that new markup

    Important: The captions had to be shown on that masonry in the enfold options dialog – otherwise they are not in the markup.
    so if you do not like to have the visible set the figcaption to display none.

    .mfp-top-bar h2 {
        color: #fff;
        font-weight: normal;
    }
    
    .page-id-36548 .av-inner-masonry-content {
        display: none;
    }
    in reply to: header security entries #1167247

    by the way ‘self’ is ok but unsafe-inline and unsafe-eval are not ok – but on most of wordpress installation they are needed to have a working Site

    in reply to: Dataprotection with Enfold? How to set header-tags? #1167240

    hm – ismael that will not be enough : and will end in:

    and a non working wordpress page (

    By the way – what kind of chairs are these? They look a bit like “upholstered Arne Jacobsen chairs”.

    edit : thanks i found it: “Armen Living Cassie Dining Chair”

    hm – what i can not believe is that your home page is not declared as it is. : home – but nevertheless we can address that page via its id:

    .page-id-45 .av-section-bottom-logo.header_color {
        position: absolute;
        z-index: 5;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        background: rgba(255,255,255,0.5) !important
    }

    you decide what looks best on transparency options.

    in reply to: How to change h2 in a topslider #1167209

    And by the way that element ( full-width slider with images and their captions) got for each image and its caption an own options dialog for responsive behavior:

    in reply to: Dataprotection with Enfold? How to set header-tags? #1166869

    my thoughts on that are here resumed: https://kriesi.at/support/topic/header-security-entries/#post-1155949
    the question is why we had to set it to unsafe-inline and unsafe-eval to have a working site?

    you can see here f.e.: that it is mostly a wordpress thing https://core.trac.wordpress.org/ticket/38695

    I hope that WordPress should take care of that: and that an unsafe-inline and unsafe-eval is not necessary in the future releases

    in reply to: Dataprotection with Enfold? How to set header-tags? #1166843

    na bei dem Ergebnis bin ich von den CSP und Header Security Einträgen HSTS ausgegangen! Das ist wie in meinem Link zu sehen schon was anderes.
    Bei dem von Ihnen gesetzten Link – woran machen Sie das Fehlen von Meta-Tags jetzt dingfest?


    _________

    at the result of your link above I assumed that your quest concerns to the CSP and Header Security entries HSTS! This is like in my link to see already something else.
    With the link you set – where do you make the absence of meta tags now visible?

    in reply to: Dataprotection with Enfold? How to set header-tags? #1166460

    hm – first of all : who is responsible for the contents of your page in your imprint?
    So also this contact person has to take care of it.

    Everyone has completely different pages, and relevant also page requirements. If you use Google systems, then these must flow into your releases also there. Do you use cloud services or CDNs – and which ones etc. pp. Analytics Tools …
    These are so many parameters that only you can know, that it would be unfair to charge these tasks to a theme creator.

    These header security entries are only indirectly related to the GDPR. They should prevent that various illegal attacks (Man in the Middle etc.) on the part of third can take influence on your site.

    Well, don’t shirk your responsibilities. With SSL certificates, you also have to take care of it yourself.

    in reply to: Divide further a column #1165851

    That was my first idea – nikko had.

    I use it often – when nesting columns.
    the only difference is that a grid-row element is a full-width container. but that is not so hard to optain it the same width as normal content elements: https://webers-testseite.de/layout-mimic/

    in reply to: Dataprotection with Enfold? How to set header-tags? #1165743
    in reply to: Left sidebar sticky issue #1165699

    well the first i see is that there is something different on work.
    There is nothing of the code i set on my page. no display flex etc. Guess your are trying a different method.

    in reply to: Left sidebar sticky issue #1165481

    may i see your site please – think of – i’m participant as you are and can not see private area

    in reply to: Shortcodes within Shortcodes… #1165424

    maybe a search on google could help you : look for wordpress and nested shortcodes f.e.: https://slewis.org/nested-wordpress-shortcodes/
    it all is about setting filterpriority – and be carefull on dooing that too early – maybe a mod could give you a hint on what priority ( 10 or 20 …) it is best to implement.
    this comes to child-theme functions.php:

    define('filter_priority', 10);
    add_filter('the_content', 'do_shortcode', filter_priority);
    add_filter('widget_text', 'do_shortcode', filter_priority);

    A nice idea ! indeed – and in combination with f.e. restrict widget plugin you can define for different pages in a quick manner different footers.
    ______________________
    Off-Topic: by the way i showed a way to have a second footer widget row in the footer – or to have a widget row in socket here:
    https://kriesi.at/support/topic/second-widget-line-in-footer/

    all you need is a custom child-theme footer.php and one entry in child-theme functions.php:
    here for footer: https://kriesi.at/support/topic/second-widget-line-in-footer/#post-1156806
    here for Socket: https://kriesi.at/support/topic/second-widget-line-in-footer/#post-1156800

    it will end in an extra setting in enfold options dialog f.e.:

    in reply to: Left sidebar sticky issue #1165213

    This is meant to be a suggestion: https://webers-testseite.de/sticky-sidebar/

    The sidebar is fixed as long as the content container can scroll. If the sidebar has more content than the screen height – it is recommended to scroll at the end.

    you have to transfer this to sidebar left and to your page-id.

    Here you can see another page with same idea: https://webers-testseite.de/sticky-elements/
    or here: https://webers-testseite.de/layout-mimic/. – see whats happening on the end of the page. ;)

    in reply to: Galerie: Nicht verbundene Bilder erkennen und löschen #1165017

    there are some plugins – and most of them make a backup of marked for delete images.
    f.e.: https://wordpress.org/plugins/media-cleaner/

    Make yourself a backup of media library and test yourself

    in reply to: NEW Page for every image killing my SEO #1164946

    PS : a lot of tools to redirect – and even Yoast SEO did it this way.
    But i try to find a solution to completely hamper creation of those attachment pages – but didn’t found one.

    in reply to: NEW Page for every image killing my SEO #1164937

    Well this is a wordpress feature –
    if you go to your media library and open one image to edit – there is an attachment page.
    If you are using Yoast SEO there is an Option to do this : redirect image attachment page to something.

    if you not using it – and you don’t like to use a plugin – you can redirect all image attachment pages f.e. to your homepage via child-theme functions.php:

    function image_redirect_attachment_page() {
    	if ( is_attachment() ) {
    		global $post;
    		if ( $post && $post->post_parent ) {
    			wp_redirect( esc_url( get_permalink( $post->post_parent ) ), 301 );
    			exit;
    		} else {
    			wp_redirect( esc_url( home_url( '/' ) ), 301 );
    			exit;
    		}
    	}
    }
    add_action( 'template_redirect', 'image_redirect_attachment_page' );
    in reply to: Text around logo functionality #1164363

    Many thanks – I like people with good behaviour. ;)

    Anyway – under my nick there is my contact information, if you know where the layout goes, then I’m happy to help.
    But with your code above, which you used, I don’t think a special help is necessary. Sometimes you just can’t get to the simplest things, like the Order option of a Flex layout.
    Otherwise my example pages are mostly without merging, so that you get quite far with the developer tools to pick out the css instructions.

    yes – for book collections there is a lot to do, and this is also a good idea to have a special custom post format on this, because there could be special keywords (like ISBN numbers etc.) .
    Most of the time these plugins create only custom post type ( often shorted to CPT – if you see that) , as we have seen from the portfolios.

    That could be advantageous in your case.
    What I see on the old example page, however, would work without problems only with Enfold elements.
    You just have to look through the function of a blog page a bit more.
    Don’t worry – every question is a good one; stupid are people who have no questions.

    Enfold presents some Options on showing a blog page ( i prefer to style it with ALB Element ) but you can set any page to show the blog ( if you have only one ) by setting it on Enfold Options – Theme Options = “And where do you want to display the Blog?” here you have the choice to set a page as Blog Page.
    Under Enfold Options – Blog Layout – you have different settings on that page. ( you need the grid layout ) etc. pp.

    look to your other topic.
    You have your single Books in Posts – so use first Blog Element to show these Posts in a Grid view.

    More and more I come to the conclusion that you may not have discovered the Enfold typical editor yet.
    With your 18 topics, that might be the case.
    First of all I recommend you to disable the Block Editor (Gutenberg). I find this only confusing in connection with Enfold.
    This can be done under Dashboard – Enfold (or Enfold Child) – Theme Options = Select Your Editor

    Then you have a button below the Title input field of each Editor Page ( Pages / Posts/ Portfolio) : Advanced Layout Editor. If you press this button, then these Advanced Layout Builder Elements ( ALB Elements) will appear above the layout window (sometimes this is not quite clear in the theme because Avia Layout Builder is also used as a name).

    This is indeed the great strength of this theme. An intuitive layout design via drag and drop; sometimes with a little too many settings, but most of them are quite useful and have grown over time.

    Now for those pages that are a collection of existing posts/portfolios there are exactly the blog representations.
    Because I see that you have probably created the individual book pages all as posts. So you have the possibility to drag the element “Blog Posts” from the tab “Content Elements” to e.g. a color section. If you want to have a sidebar there, just drag it into a 1/1 container.

    Then you can choose the grid display in the element “Blog Posts”.

    Whenever you then add a new post in the category, the new entry will automatically appear on the overview page.

    in reply to: Text around logo functionality #1164337

    or maybe this is something for you: https://kriesi.at/documentation/enfold/example-of-widget-left-logo-center-widget-right-menu-below/#toggle-id-2
    It is working with widgets in that area.

    in reply to: Darstellung des Sticky Mobile Burgers verändern #1164251

    But you already know that you probably chose the option : “Header is invisible and appears once the users scrolls down”?

    And what do you mean by “When I comment out the script in the quick css-field, than the desktop-display is OK again.”
    Quick CSS Input is not at all a place for a script.

    in reply to: Text around logo functionality #1164248

    you see the code i used to insert the additional containers.
    It is easy to have there additional attributes on the spans ( title, alt etc.) – the code could be language specific because you can build if clauses on that case.
    If you need different links on these left and right sentences – maybe it is better then to have siblings of the span.logo container instead.
    i do not know how your prefered header looks like. So describe a bit more. On your example image above it seems to be that your logo is on top and navigation below.

    in reply to: Text around logo functionality #1164088

    on a customer page i did it just with one svg file – and on smaller screens i shift the groups the way i want.
    It is a bit more work before – but you have a lot of advantages on that. Fill options etc. pp

    OR:
    with your setting of logo on top nav below: https://webers-testseite.de/cynthia/logo-top-two-subs/

    you can set for wide screens on flex layout the logo container to 100% width and set justify-content to space-around.

    in reply to: Text around logo functionality #1164075

    See here: https://webers-testseite.de/cynthia/logo-two-subs/

    i have on that logo ( img , span1, span2 )
    on wider screens i handle logo a as display flex and set the order this way that span1 is before img.
    on mobile i go back to display block and can now position the spans absolute and float options.

    by the way i did not think on that function – i just added both spans with:
    ( so i have these as siblings to logo img )

    function add_logo_elements() { 
    ?>
    <script>
    	(function($){		
    		$('.logo a').append('<span class="on-left">My Company</span><span class="on-right">My Slogan</span>');
    	})(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_logo_elements');
    in reply to: Text around logo functionality #1164042

    What would be your idea how the mobile version should look like?

    in reply to: Change Previous / Next buttons in Portfolio items #1164041

    have you looked to the date of that question ( and solution) ?

    Ok – try this in child-theme functions.php:

    function my_avf_post_nav_entries( array $entries, array $settings, array $queried_entries ){
      $next = $entries['next'];
      $entries['next'] = $entries['prev'];
      $entries['prev'] = $next;
      return $entries;
    }
    add_filter( 'avf_post_nav_entries', 'my_avf_post_nav_entries', 10, 3 );

    __________
    Off-Topic

    to have the same category this would be nice to have:

    function my_avf_post_nav_settings( array $settings ){
      if( true === $settings['is_hierarchical'] ){
        $settings['skip_output'] = true;
        return $settings;
      } 
      if( ! in_array( $settings['type'], array( 'post', 'portfolio' ) ) ){
        $settings['skip_output'] = false;
        return $settings;
      }
      $settings['same_category'] = true;
      $settings['is_fullwidth'] = false;
      $settings['skip_output'] = false; 
      return $settings;
    }
    add_filter( 'avf_post_nav_settings', 'my_avf_post_nav_settings', 10, 1 );
    in reply to: Flex column animation at the end of a page not triggering #1164031

    you can use the implemented waypoint script but have your own settings with child-theme functions.php.

    for some enfold animations it is only necessary to have fired it once the point of triggering is passed. But sometimes it is nice to include if scroll-direction is important:
    f.e. if you like to move a container from off-screen to the center – and on scrolling up it will go off-screen again

    for that i use to toggle a class to which i can give the animation rules. The element to observe gets a custom class ( f.e. inview )

    function scroll_up_down_change() {
    ?>
    <script>
        (function($) {
    	var element_to_animate = $('.inview');
    	element_to_animate1.waypoint(function(direction) {
    		if (direction === 'down') {
    			$(this.element).addClass('animate-now');
    		}
    	 },{offset: '90%'}
    	);
    	element_to_animate1.waypoint(function(direction) {
    		if (direction === 'up') {
    			$(this.element).toggleClass('animate-now');
    		}
    	 },{offset: '90%'}
    	);			  
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'scroll_up_down_change', 9999);

    then you can play with offset too.
    By the way i believe the 100% offset is if it comes on the bottom into view – so maybe the 90% will do the trick on the change above

    See here the last button on that page uses 90% : https://webers-testseite.de/buttons/

    and an enfold animation – but you can have your own keyframes aswell – just define it for the toggled class.
    Or: See here how it can be used to change header_bg background-color on color-section dependencies.: https://kriesi.at/support/topic/menu-bar-with-dynamically-changing-colors-referencing-the-background/#post-1161520

Viewing 30 posts - 5,701 through 5,730 (of 11,484 total)