Forum Replies Created

Viewing 30 posts - 3,721 through 3,750 (of 11,989 total)
  • Author
    Posts
  • in reply to: Video links in Lightbox Galleries not working #1350608

    First of all : do not enter the url with ?iframe=true
    try that first
    it is working with your gallery too ( big image – thumbnails below ) – see example page above.

    And this is setting under Advanced Tab?

    can you try to use the gallery on link settings as: “use custom link – fall back is image”

    click to enlarge the image:

    and btw: if you add some attributes after a youtube ID – the first one gets a question-mark – and than all others an ampersand!

    ________

    this list is a bit confusing – that is right.
    maybe it will be better if there is:

    1) Lightbox active and opens the image link
    2) Lightbox active and opens the custom link (fallback is image link)
    3) Lightbox is inactive and will open the image link in same browser window
    4) Lightbox is inactive and will open the image link in new window/tab
    5) no link at all – just gallery

    in reply to: Video links in Lightbox Galleries not working #1350600

    Have you checked this out, or are you just guessing?

    • This reply was modified 3 years, 9 months ago by Guenni007.
    in reply to: Video links in Lightbox Galleries not working #1350593

    can you try to use the gallery on link settings as: “use custom link – fall back is image”
    then insert to that image you try to load the youtube video ( with watch! : https://www.youtube.com/watch?v=qCNu_vJNLMQ ) and insert it on custom-link field.:

    And look if that is the way to have it.

    in reply to: Add jQuery code to Enfold #1350475

    Not for this, you are welcome anytime.

    are these videos self-hosted ones?
    And by the way f.e. vimeo and i guess youtube too offers to save a user defined small sequence ( few seconds ) to save as animated gif. You can download it and use it directly as featured image. Maybe you had to size it to correct dimensions. (ezgif.com is a nice address on that)
    But you must show those galleries; masonries etc. with thumbs at no scale – because animation is lost then by recalculated images.

    see here : https://webers-testseite.de/masonry/ the gifs post ( this is a post even made with alb)

    in reply to: start gallery in lightbox via textlink #1350182

    now – this is my testsetting for you:

    1) The textblock with the links to the galleries got a custom-class: text_to_lightbox
    2) The links of these texts refer to the ID of the correlating gallery. ( in my case it is gallery1 and gallery2)
    3) if you like to hide those galleries – set a custom class to each of them: mfp-hide ( this is a predefined class on enfold to hide those containers )
    4) give a custom ID to the gallery – ( gallery1, gallery2 etc – what you like – only it has to correlate with the links of the texts)
    5) put this to your child-theme functions.php:

    
    function text_link_to_gallery_lightbox() {
    ?>
    <script type="text/javascript">
    (function($) {
        $(document).on('click', '.text_to_lightbox a', function(event) { 
            event.preventDefault(); 
            var linkTarget = $(this).attr('href');
            $(linkTarget).find("a.first_thumb").click(); 
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'text_link_to_gallery_lightbox');

    see result here: https://webers-testseite.de/hidden-gallery/#gallery2
    The advantage is that you can style your galleries as enfold alb element – do not forget to set the lightbox link active.

    in reply to: WordPress / Enfold and Content Security Headers #1350101

    yes – the Content-Security-Policy "upgrade-insecure-requests" is new.

    The HTTP Content-Security-Policy (CSP) upgrade-insecure-requests directive instructs user agents to treat all of a site’s insecure URLs (those served over HTTP) as though they have been replaced with secure URLs (those served over HTTPS). This directive is intended for web sites with large numbers of insecure legacy URLs that need to be rewritten.

    Link

    in reply to: search to not eviciant #1350065

    And Btw. if you like to include f.e. custom post types to search – put this to your child-theme functions.php
    ( you had to know the name of your cpt to insert it to the array )

    function include_cpt_search( $query ) {
        if ( $query->is_search ) {
        $query->set( 'post_type', array( 'post', 'page', 'custom_post_type' ) );
        }  
        return $query;
    }
    add_filter( 'pre_get_posts', 'include_cpt_search' ); 
    in reply to: Portfolio Item can't set Featured Image #1350010

    maybe you can read this: https://kriesi.at/support/topic/beitragsbild-eines-blogbeitrags-automatisch-anzeigen/#post-1198720

    and in particular : https://kriesi.at/support/topic/beitragsbild-eines-blogbeitrags-automatisch-anzeigen/#post-1202606

    I edited that snippet a bit to more look like the posts not generated with alb:

    function avf_template_builder_content_postimage_mod($content = ""){
      if(  is_singular('post') || 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 = '<header class="entry-content-header"><div class="page-thumb">' .$featuredImage. '</div></header>' . $content ;
          }
      return $content;
    }
    add_filter('avf_template_builder_content', 'avf_template_builder_content_postimage_mod', 10, 1);

    but remember – it is only shown if you set the metabox to insert on single post – and try to avoid using full-width elements on those posts. – because otherwise the sidebar (if present) will go under this content.
    _______________________

    btw.: is that new on the metabox – to have a choice for svg’s ?

    • This reply was modified 3 years, 10 months ago by Guenni007.
    in reply to: Images showing up blurry, I have no idea why! #1349990

    maybe you can add to avia images a css setting for the rendering:

    .avia-image-container .avia_image, 
    .avia-image-container .avia-image-overlay-wrap {
      image-rendering: optimizequality;  /*** or try : crisp-edges  ***/
    }

    there are a lot of settings to that – test it on developer tools what fits best for you: image-rendering tips

    in reply to: Images showing up blurry, I have no idea why! #1349989

    well – open your image in a browser – just pure: https://artlifestudiosproductions.com/wp-content/uploads/2022/04/On-Stage-Sound-System-Setup2.jpg
    and size your browser window to at least that dimension you have in your homepage.
    This is not an enfold problem – it is the way browsers do render a resized image
    this will be the was your full-size image looks without enfold influence on a firefox browser:

    in reply to: Add jQuery code to Enfold #1349905

    btw: maybe that part of your script does not work as expected :

    input[name="fdm_ordering_phone"]
    

    this is called an attribut selector. the input that has the exact name of …
    but if there are f.e. spaces the selector does not fit.
    this:

    input[name*="fdm_ordering_phone"]
    

    this asterisk indicates that the value must occur only once – no matter whether other values are also present or e.g. appendices. This here: name= xyz fdm_ordering_phone.jpg would be selected therefore also

    PS: same with fdm_ordering_email

    • This reply was modified 3 years, 10 months ago by Guenni007.
    in reply to: Add jQuery code to Enfold #1349902

    yes – i think that your code above:
    jQuery('.fdm-ordering-sidescreen #fdm-ordering-contact-details .fdm-ordering-contact-item').each((idx, x) => {jQuery(x).find('input[name="fdm_ordering_email"]').length == 1 || jQuery(x).find('input[name="fdm_ordering_phone"]').length == 1 ? jQuery(x).hide() : ''; });

    is your custom.js file
    if you have a child theme – you had to upload that custom.js to your enfold-child/js folder ( on default there is no js folder – create one )

    now this snippet comes to functions.php of your child theme and loads that external script.

    function add_customjs() {
    	wp_enqueue_script( 'customjs', get_stylesheet_directory_uri().'/js/custom.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'add_customjs', 100 );

    _______

    but
    1st: in your custom.js file (maybe it is only because you do not use the code function on posting the code) there is a double quote – but it had to be an empty double single quoute:
    jQuery('.fdm-ordering-sidescreen #fdm-ordering-contact-details .fdm-ordering-contact-item').each((idx, x) => {jQuery(x).find('input[name="fdm_ordering_email"]').length == 1 || jQuery(x).find('input[name="fdm_ordering_phone"]').length == 1 ? jQuery(x).hide() : ''; });
    it is the last: ''

    2nd: for such a small script you can insert this directly via your child-theme functions.php without having an external script to upload.
    Try this in your child-theme functions.php:

    function fdm_ordering_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$('.fdm-ordering-sidescreen #fdm-ordering-contact-details .fdm-ordering-contact-item').each((idx, x) => {$(x).find('input[name="fdm_ordering_email"]').length == 1 || $(x).find('input[name="fdm_ordering_phone"]').length == 1 ? $(x).hide() : ''; });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'fdm_ordering_custom_script');
    in reply to: maps #1349880

    On Console Log i can see:

    You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started

    Don’t worry, only big websites with lots of traffic are affected. i have only ever received zero cash bills.

    Mainly Google tries to prevent people from earning money with their services. As, for example, app developers who use the Google Map services – etc. pp.

    in reply to: Remove Hover Colors on Social Icons #1349476

    And if you like to have a little effect on hovering – maybe you deside to have a text-shadow on them:
    ( default rule has a lot of ID’s on that rule – so maybe Rikards code will not work this way )

    #top #wrap_all .social_bookmarks li:hover a, 
    #top #wrap_all .social_bookmarks li:hover a:focus {
      background-color: transparent !important;
    }
    
    #top #wrap_all .social_bookmarks li:hover a {
      text-shadow: 2px 2px 2px #000;
    }
    in reply to: Issue with support post #1349470

    on both images i see total 31 – where is the 32

    Edit ok – now ( but not in your images ) i see in the list view of the topics:

    That might be a little bug – and even that mike is listed as last entry is wrong – because the last entry is mine – but on the 2nd page

    in reply to: Fonts not loading properly in certain pages in Safari #1349467

    First – what version of Safari do you use?
    Then – the entries managing the font used are set by a class that is added to the body tag.
    ( in my case it is open-sans – click to enlarge the image )

    the entries are ( in my case with open-sans ) :

    h1, h2, h3, h4, h5, h6, 
    #top .title_container .main-title, 
    tr.pricing-row td, #top .portfolio-title, 
    .callout .content-area, 
    .avia-big-box .avia-innerbox, 
    .av-special-font, 
    .av-current-sort-title, 
    .html_elegant-blog #top 
    .minor-meta, 
    #av-burger-menu-ul li {
    	font-family:'open sans', Helvetica, Arial, sans-serif; 
    }
    
    body.open_sans {
    	font-family:'open sans', Helvetica, Arial, sans-serif;
    }

    you see that the rule on top is not in dependency to that class – but f.e. the p-tag is. – but the default rule of enfold is to “inherit” the font.
    Inherit goes to the closest parent element that has a font definition.

    one possibility is : this class isn’t set on your installation. And this will be no default behavior.
    next: your Safari is an old one – and does not support modern font format (woff, woff2 ) but only : truetype or svg.
    But even then, I believe that Enfold has taken that into account in their writings and included them.

    Is there a link that we can inspect why this could be
    you see that here on open-sans it is as fall-back font Helvetica too. But the first font will be take – if there are no problems with that setting.

    in reply to: SVG-Logo – not showing #1349463

    btw – that is the right snippet, but that first line : add_theme_support('avia_template_builder_custom_css'); is not part of the needed code. this is an additional entry of your functions.php.
    i’m participant as you are – so i do not see any hidden private content. But if you like i will chack your svg or page too.

    in reply to: hide sidebar on seach result page #1349452

    What if you just give it a try? – will there be a self-destructing countdown then? ;) :lol
    I don’t know how your snippet plugin works – but if not – then there is usually the option to remove the entry again.

    in reply to: Issue with support post #1349451

    and that is true – because you are seeing 30 – the 31 reply is on page 2 – and that is mine ;)
    31 posts – it seems that boardsoft will automaically paginate after 30 posts.

    in reply to: Important change request for avia_google_maps_api.js! #1349441

    @NIXHALBES try to use the code tag here on board. It is hard to look at your code if you have to rework the code on a test basis first. For example, all quotes are converted to unusable characters if you only set them as text.

    PS – you can have extra entries to Content-Security-Policy in your htaccess file to avoid loading fonts from any third party place.
    you can determine where fonts could be loaded: font-src 'self'

    in reply to: SVG-Logo – not showing #1349283

    did you check if your logo2.svg does open in a browser? Just drag&drop the svg from your desktop to an opend browser window.

    in reply to: Text to right of header #1349201

    is it that page – correlating to your avatar ;)
    You like to have to the right side of your logo a text – maybe like here on the board itself. And maybe on scroll the same effect ?

    Sorry – i didn’t recognized it is divi on that page. – then a link would be nice.

    PS: The board here did it with subtext –
    f.e.: you can use any html here but you can use site name and description for it.
    this for child-theme functions.php:

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub)
    {
      $sub .= "<span class='logo-title'>";
      $sub .= get_bloginfo( 'name', 'display' );
      $sub .= "</span>";
      $sub .= "<span class='logo-title logo-subtitle'>";
      $sub .= get_bloginfo( 'description', 'display' );
      $sub .= "</span>";
      return $sub;
    }

    Rest will be quick css work

    in reply to: Similar footer problems as everyone else, but can't fix #1349200

    do you have a child-theme header.php ?
    there are a lot of new entries in that file – which also include settings for the footer.

    in reply to: Hamburger sub-menu slide out transition animation #1349167

    This little snippet is only for 1st level submenu !
    It will show then only one submenu open at a time – on click another submenu item the other will close. Is it that what you like to achieve?
    _____________
    Just let the setting to show submenu on click – and insert this to your child-theme functions.php:

    function only_one_submenu_open(){
    ?>
    <script>
    (function($) {
    $(document).ready(function(){ 
      $('body').on( 'click touch', '.av-active-burger-items > a', function () {
        $(this).parent('li').siblings().removeClass('av-show-submenu');
        $(this).parent('li').siblings().find('ul').slideUp( "fast");
      });
      $('body').on( 'click touch', '.av-active-burger-items .av-width-submenu > a', function () {
        $(this).closest('.sub-menu').siblings().find('li').removeClass('av-show-submenu');
        $(this).closest('.sub-menu').siblings().find('ul').slideUp( "fast");
      });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'only_one_submenu_open');
    in reply to: hide sidebar on seach result page #1349131

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

    function avia_change_layout_for_searchresults($layout, $post_id) {
        if( is_search() ) {
            $layout['current'] = $layout['fullsize'];
            $layout['current']['main'] = 'fullsize';
        }
        return $layout;
    }
    add_filter('avia_layout_filter', 'avia_change_layout_for_searchresults', 10, 2);
    in reply to: Unique id attribute #1349045

    mayby you gave that ID : top to a different color-section or another element on your page.
    That ID is preserved for the body tag !

    in reply to: Let portfolio item link open in a new tab #1349044

    Thank you – you’re welcome

    in reply to: Let portfolio item link open in a new tab #1348956

    did you load your jQuery in the footer?

    if so these snippets added to your child-theme functions.php had to be loaded afterwards.
    ( just add a low ( higher value) priority )
    so try with 999 on priority as Ismael does with his snippet :

    function open_masonry_entries_in_new_tab(){
    ?>
    <script>
    (function($) {
      MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
      var observer = new MutationObserver(function() {
        $("a.av-masonry-entry").attr("target", "_blank");
      });
      observer.observe(document, { subtree: true, childList: true });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'open_masonry_entries_in_new_tab', 999);

    PS:

    $priority (int) (Optional) Used to specify the order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action. Default value: 10

    in reply to: Make button animation flip #1348932

    transfering your codepen link to enfold buttons:

    1) give a custom-class to your button: flip-button
    2) this to the Label Input Field: <span class="back">Click!</span><span class="front">Read More</span>
    ( you can change the content to what you like to have as label for the button )
    3) this to child-theme functions.php:

    function set_data_attribute_for_flip_buttons(){
    ?>
    <script type="text/javascript">
    (function($) {
    $(document).ready(function(){    
        $('.avia-button-wrap.flip-button').each( function() {
          $(this).find('.avia-button').addClass('btn-flip');
          var frontLabel = $(this).find('.front').html();
          var backLabel = $(this).find('.back').html();
          $(this).find('.avia-button').attr('data-front', frontLabel).attr('data-back', backLabel);
          $(this).find('.label').css('display', 'none');
        });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'set_data_attribute_for_flip_buttons');
    

    4) this to quick css:

    body div .avia-button.btn-flip {
      padding: 0px; 
      margin: 0px; 
      opacity: 1;
      outline: 0;
      color: #fff;
      line-height: 40px !important;
      position: relative;
      text-align: center;
      letter-spacing: 1px;
      display: inline-block;
      text-decoration: none;
      font-family: "Open Sans";
      text-transform: uppercase;
    }
    
    body div .avia-button.btn-flip:hover:after {
      opacity: 1;
      transform: translateY(0) rotateX(0);
    }
    
    body div .avia-button.btn-flip:hover:before {
      opacity: 0;
      transform: translateY(50%) rotateX(90deg);
    }
    
    body div .avia-button.btn-flip:after {
      top: 0;
      left: 0;
      opacity: 0;
      width: 100%;
      color: #323237;
      display: block;
      transition: 0.5s;
      position: absolute;
      background: #adadaf;
      content: attr(data-back);
      transform: translateY(-50%) rotateX(90deg);
    }
    
    body div .avia-button.btn-flip:before {
      top: 0;
      left: 0;
      opacity: 1;
      color: #adadaf;
      display: block;
      padding: 0 ;
      line-height: 40px;
      transition: 0.5s;
      position: relative;
      background: #323237;
      content: attr(data-front);
      transform: translateY(0) rotateX(0);
    }
Viewing 30 posts - 3,721 through 3,750 (of 11,989 total)