Forum Replies Created

Viewing 30 posts - 3,931 through 3,960 (of 11,918 total)
  • Author
    Posts
  • in reply to: Lightbox for Blog Post Element #1337641

    Not for that –
    maybe you change from.hide() to .remove()
    that is somehow a matter of taste

    in reply to: Lightbox for Blog Post Element #1337580

    if you like to have no sidebar on the iframe replace that part above that checks if frame or not with:

    	if (top === self) { 
    		// no frame
    	} else { //frame 
    		$('#header, #footer, #socket, .sidebar').hide();
    		$('#main').attr('style', 'padding-top: 0px !important'); 
    		$('.container .av-content-small').css('width', '100%');
    		$('.content').css('border-right', 'none');
    	};

    and if you like to have the link of the concerning categorie aswell open in a lightbox – extend the selectors to:

    $('.open-in-lightbox a.slide-image, .open-in-lightbox .blog-categories > a,  .open-in-lightbox .slide-entry-title > a').magnificPopup({
    
    in reply to: Lightbox for Blog Post Element #1337579

    try:

    function posts_iframe_popup() { 
    ?>
    <script type="text/javascript">
    (function($) {
    	if (top === self) { 
    		// no frame
    	} else { //frame 
    		$('#header, #footer, #socket').hide();
    		$('#main').attr('style', 'padding-top: 0px !important');  
    	};
    	
    	$(window).on('load', function(){
    	  $('.open-in-lightbox a.av-masonry-entry').magnificPopup({
    	    type:'iframe',
    	    mainClass: 'spezial-masonries',
    	  }); 
    
    	  $('.open-in-lightbox a.slide-image, .open-in-lightbox .slide-entry-title > a').magnificPopup({
    	    type:'iframe',
    	    mainClass: 'spezial-blogposts',
    	  }); 
    	});
    })(jQuery);
    </script>
    <?php }
    add_action('wp_footer', 'posts_iframe_popup');

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

    Did you see the additonal tab on enfold – general styling – typography
    there is a comment that the first option is for body

    you can leave the other screen options on default and change only the first option – then it will be the same as before setting the body font

    in reply to: Lightbox for Blog Post Element #1337562

    i gave to the alb element itself a custom-class ( in my case ) : open-in-lightbox

    then i put this to child-theme functions.php:

    function posts_iframe_popup() { 
    ?>
    <script type="text/javascript">
    (function($) {
    $(window).on('load', function(){
      $('.open-in-lightbox a.av-masonry-entry').magnificPopup({
        type:'iframe',
        mainClass: 'spezial-masonries',
      }); 
    
      $('.open-in-lightbox a.slide-image, .open-in-lightbox .slide-entry-title > a').magnificPopup({
        type:'iframe',
        mainClass: 'spezial-blogposts',
      }); 
    
    });
    })(jQuery);
    </script>
    <?php }
    add_action('wp_footer', 'posts_iframe_popup');

    the mainClass is only to have a way to select f.e. the iframe-scaler specifically for that usage – you will have that class on mfp-wrap container.
    to have the links from both ( the image and the slide title – we have in that rule two selectors).

    PS : on that blog-posts the first link “iframe-lightbox” leads to an iframe which can open a new iframe on top :lol:

    in reply to: Lightbox for Blog Post Element #1337555

    you can see here on top of that page a masonry with portfolio links.
    If you click to open it – it will open that portfolio in a lightbox ( but the complete page )
    https://webers-testseite.de/lightboxes/
    Is it the way you like to have it?

    in reply to: Lightbox for Blog Post Element #1337421

    show me a test page where you like to open those links in a lightbox.
    is it a page like this:
    https://kriesi.at/themes/enfold-2017/elements/blog-posts/
    or
    https://kriesi.at/themes/enfold-2017/blog/blog-default/
    And you want to open not the posts on a new page but as iframe in a lightbox?

    in reply to: Animate Color Section #1337363

    i can see the animation too. ( Firefox, Safari, Chrome on OSX )

    there is one thing to mention : if your screen is bigger than the image size – the animation stops.
    maybe you setup a background-size to that section f.e. : background-size: 110%

    in reply to: add menu button/link next to hamburger menu #1337076

    hm – i thougt you prefered the position next to search icon – ok.

    in reply to: add menu button/link next to hamburger menu #1337070

    as ismael mentioned at last there is on your menu options page – on top right a slide-out button – labeled : Screen Options

    after slide out – you can choose on “Show advanced menu properties” : CSS Classes

    in reply to: show events in blog loop #1337047

    is it you want to have on all archives – that posts and events are together ?
    Maybe you can use the hook : pre_get_posts to include the tribe_events to post
    and have you enabled the tribe-events for advanced layout builder – or is it now default behavior?

    i do not use the Tribe Events – so i got no experience with it – and i can not test this!

    for the conditionl tags you might add the !is_admin() – see: https://developer.wordpress.org/reference/hooks/pre_get_posts/

    … i do not find yet a solution

    in reply to: add menu button/link next to hamburger menu #1337035

    or place that link in the menu as f.e.: individual Link and give that class to the item: menu-item-avia-special
    you can choose the option: button style here aswell.

    Nice advantage is: if the burger-menu is opened – the button stayes on top like the burger icon.

    in reply to: Accordion title as h2 or h3 #1337020
    in reply to: Hide menu item on home page #1336914

    after menu-item-1988 – there is a semicolon – that is not right ! ( If you got more selectors in front of that rule they are separated by commata )
    so remove that semicolon:

    .page-id-1500 #menu-item-1988 {
      display: none !important;
    }
    in reply to: Accordion title as h2 or h3 #1336911

    If it has only styling reasons (appearance of a h3), then the way over the jQuery Script above would be the easiest variant. You would give the Accordion a custom class and adjust the selector in the script accordingly.

    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('.h2titles p.toggler', '<h2></h2>');
          replaceElementTag('.h3titles p.toggler', '<h3></h3>'); 
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');

    here with custom class; h2titles and h3titles
    see: https://webers-web.info/toggles/

    in reply to: Accordion title as h2 or h3 #1336721

    Correct – then let me know if everything worked.

    in reply to: Accordion title as h2 or h3 #1336695

    Yes it is – but do not forget to place the code above in your child-theme functions.php: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    in reply to: Animate Color Section #1336642

    well try to create your own keyframe animation.
    At the end f.e. a kenburns effect is nothing else than that. see: https://codepen.io/SaijoGeorge/pen/LxeGgY

    so to better select the color-section – give a unique ID or custom-class to it – in my test page it is: animated-background as class.
    a slide from left to right and back is f.e:

    .avia-section.animated-background {
     animation: anime 60s linear infinite;
    }
    
    @keyframes anime {
     0% {
      background-position:0% 50%
     }
     50% {
      background-position:100% 50%
     }
     100% {
      background-position:0% 50%
     }
    }

    (see link to codepen – and add the other browser fixes too ( -webkit seems to be the most important now ) )
    see: https://webers-web.info/moving-background/

    in reply to: Accordion title as h2 or h3 #1336635

    there is a jQuery solution on that – this in child-theme functions.php will do that job too:

    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('p.toggler', '<h3></h3>'); 
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');

    – but on SEO reasons i would prefer not to replace the tags after page load, and take the first solution

    in reply to: Accordion title as h2 or h3 #1336634

    you find that file in: enfold/config-templatebuilder/avia-shortcodes/toggles.php
    open it on you desktop pc with a good texteditor ( ;) not word ) ( notepad++ or sublime text for mac osx)
    find all p.toggler and replace them with f.e.: h3.toggler
    find that code above and replace p with h3 ( don’t forget the closing tag )
    save that edited alb element on your desktop pc.

    Now:
    to have child-theme substitutes for enfold alb elements – create a subfolder on your enfold installation via ftp named : shortcodes
    upload to that subfolder the toggles.php file

    and put this to your child theme functions.php:

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);

    see documentation of enfold: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    this is the way you can replace every alb element by a child-theme alb.

    you can see and download the toggles.php with h3 toggle-titles from here: https://pastebin.com/uyJAY2da

    see: https://webers-web.info/testseite/#h3-title

    in reply to: Accordion title as h2 or h3 #1336616

    firstly, your page is easy to find based on the screenshot, so can you please include the link to this test page here?

    on the other hand, based on your headline, it is not clear to me what you want to achieve with the small plugin. This plugin only allows you to use special characters that are actually used for tags in the content.

    The “PADI IDC Thailand Koh Lanta – …” seems to be a heading in front of a toggle Element. So how did you insert this. Is it a heading element?
    If so – you can change the tag to h2 in the element itself ( Heading Type ).
    the toggle Titles are on default p-tags – but could be changed to f.e. h3 on the alb element itself (toggles.php) and have a child-theme toggles.php to achieve this.
    but be careful – it is not only those lines here:

    but also then all p.toggler in f.e. selectors array on lines 897ff.

    If you only want to have h2 / h3 headings in your content – just choose it from here:

    in reply to: Hide image file names in Gallery / Portfolio #1336253

    this here is a temporarly remove of the title tag
    you must adopt your selector to what you need ! ( var links )

    function temporary_removal_title_tags(){
    ?>
    <script>
      window.onload = function() {
        //var links = document.querySelectorAll('a,img,div[title]');
          var links = document.getElementsByTagName("img");
          for (var i = 0; i < links.length; i++) {
              var link = links[i];
              link.onmouseover = function() {
                  this.setAttribute("org_title", this.title);
                  this.title = "";
              };
              link.onmouseout = function() {
                  this.title = this.getAttribute("org_title");
              };
              link.onclick = function() {
                  this.title = this.getAttribute("org_title");
              };
          }
      };
    </script>
    <?php
    }
    add_action('wp_footer', 'temporary_removal_title_tags');

    you see what the code does: it saves the original title to another attribute : org_title
    now if the mouse hovers – the title is empty but the original title is saved to another attribute.
    if you leave it ( mouseout ) the title is there again.
    And on click the title will be there for lightbox captions.
    the code above is only for images – but you see the commented line – you can have more selctors here.
    you can use the selectors Nikko mentioned above.

    See in action here with the enfold tooltip on the images: https://webers-testseite.de/gallery-with-8-images/
    normal behavior is here on Gallery with preview ( hove the thumbnails ): https://kriesi.at/themes/enfold-2017/elements/gallery/

    there will be both : enfold tooltip and browser tooltip by titles

    • This reply was modified 4 years ago by Guenni007.
    in reply to: handwritten animated links plugin #1336252

    Yes the selector to insert the svg with the use instruction had to be changed.
    – but it might be best to see the real site for better advice – if you do not like to make it public – send me an e-mail with link.
    All info on avatar or nick

    in reply to: handwritten animated links plugin #1336162

    On Enfold Options: Header > Header Style choose: minimal…
    i have changed the way of your example page a little bit, because i don’t think it makes sense to paint over the stroke with another ( 2nd child) either.
    You can see it here how I implemented it in Enfold. : https://webers-web.info
    Basic idea is that there is an omnipresent svg on the page, and this is used for the menu underscore.
    To have the svg always available on all pages:
    ( to child-theme functions.php ):

    add_action('ava_after_body_opening_tag', function() {
      echo '<svg id="stroke" xmlns="http://www.w3.org/2000/svg" width="0" height="0"><defs><path id="line" d="M2 2c49.7 2.6 100 3.1 150 1.7-46.5 2-93 4.4-139.2 7.3 45.2-1.5 90.6-1.8 135.8-.6" fill="none" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke"/></defs></svg>';
    });

    and like on the codepen page also in the menu item now set a svg which uses the path of the omnipresent svg:
    ( under the code above in child-theme functions.php ):

    function insert_svg_to_main_navigation() { 
    ?>
    <script>
    (function($){
    	$('#avia-menu li.menu-item-top-level a' ).prepend('<svg class="button-stroke" viewBox="0 0 154 13"><use href="#line"></use></svg>');
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'insert_svg_to_main_navigation');

    the rest is quick css:

    body > #stroke,
    #av-burger-menu-ul svg.button-stroke {
    	display: none;
    }
    
    .button-stroke {
    	display: block;
    	width: calc(100% - 10px);
    	height: 20px;
    	position: absolute;
    	left: 5px;
    	top: calc(50% + 15px);
    	stroke-width: 2;
    	stroke-dasharray: 650;
    	stroke-dashoffset: 650;
    }
    
    #avia-menu li.current-menu-item > a .button-stroke {
    	stroke-dashoffset: 0;
    	stroke: #9b0000;  /*** it is up to you if and what color the active state of the menu-item is set here ***/
    }
    
    #avia-menu li.menu-item-top-level a:hover .button-stroke {
    	stroke: #07a;  /*** the hover color of the stroke ***/
    	-webkit-animation-duration: 2s;
    	animation-duration: 2s;
    	-webkit-animation-fill-mode: forwards;
    	animation-fill-mode: forwards;
    	-webkit-animation-timing-function: linear;
    	animation-timing-function: linear;
    	-webkit-animation-name: draw;
    	animation-name: draw;
    }
    
    @-webkit-keyframes draw {
    	100% {
    	  stroke-dashoffset: 0;
    	}
    }
    
    @keyframes draw {
    	100% {
    	  stroke-dashoffset: 0;
    	}
    }

    you see some parameters you can play with – f.e. stroke width or colors

    ___________

    with this way you should now be able to – animate your own paths as well.
    You need the path

    that part in the first code above
    <path id=”line” d=”M2 2c49.7 2.6 100 3.1 150 1.7-46.5 2-93 4.4-139.2 7.3 45.2-1.5 90.6-1.8 135.8-.6″ fill=”none” stroke-linecap=”round” stroke-linejoin=”round” vector-effect=”non-scaling-stroke”/>

    you can create it f.e. in Illustrator, and the path length for the stroke-dasharray and stroke-dashoffset. By the way, you can determine the path length in Illustrator by selecting the path, then in the menu item Window – Document information – and then in the “hamburger” select objects. ( you need the value in px not in mm )

    in reply to: handwritten animated links plugin #1336018

    The individual styles are so manifold that something like this will always have to be created as an individual solution.
    svgs and animated svgs are relatively powerful tools – and best if they are used as inline svgs. https://pureinstall.webers-testseite.de/signieren/

    in reply to: handwritten animated links plugin #1336011

    no plugin – but you see that on the codepen a hint how you can achieve that.
    Guess the inline svg will be nicer / sharper but the gif solution is much easier to understand.

    in reply to: Hide image file names in Gallery / Portfolio #1336003

    remember that since jQuery 3.0 and later will not have the

    jQuery(window).load(function(){
    

    it is deprecated since jQuery 1.8 and removed since jQuery 3.0
    you must now use:

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

    And if you don’t just temporarily remove the titles on hover, then remember for any lightboxes not to use the title for the caption.

    in reply to: Custom font size does not work #1336002

    Nikko – I think you misunderstood him. He sets the sizes there for the headings and p-tag, and the settings then in the alb are not taken into account in his opinion.
    This:

    settings in the text block alb element for the font size only affect the p-tag not the headings used in the text block.
    If you got heading alb – they will be overwritten by that inline-style – and the p-tag in the text-block alb will be overwritten too. But headings used in a text-block will have the settings from that options you mentioned above. You only can overwrite those settings inline – by
    ( click to enlarge )

    in reply to: Missing ALT-Attribute in SVG-Logo #1335992

    i do not confirm with that – my burger-menu always are part of the ul and – even the burger icon is that list point part of an unordered list

    in reply to: Overlapping column #1335710

    I always don’t understand why the pages here have to be so secret that you can’t post the example page. It would be much easier to provide a suitable CSS code on the specific case. At least you could provide a similar case in the demo pages, so you know what it’s about.
    Sometimes a fellow participant can also give good advice here.
    f.e.: https://kriesi.at/themes/enfold-2017/elements/columns/
    that code here:

    #av_section_4 .flex_column:nth-child(3) {
      position: relative;
      left: -50px;
      top: 30px;
      box-shadow: 2px 2px 5px #333;
      opacity: 0.6;
      background-color: blue !important;
    }

    provides this result:

    Color and transparency are set only to show you the overlap better.

    However, it is recommended to set the whole thing only for the non-responsive case:

    @media only screen and (min-width:768px) {
      #av_section_4 .flex_column:nth-child(3) {
        position: relative;
        left: -50px;
        top: 30px;
        box-shadow: 2px 2px 5px #333;
        opacity: 0.6;
        background-color: blue !important;
      }
    }
Viewing 30 posts - 3,931 through 3,960 (of 11,918 total)