Forum Replies Created

Viewing 30 posts - 8,251 through 8,280 (of 11,513 total)
  • Author
    Posts
  • in reply to: I want the demo Freelance just for one page #942518

    this is made via alternately Grid Row ( 1/2 1/2) Elements – first is with transparency options.
    The images are made as background-images – some with fixed positioning.

    As an ALB Element where you can place other ALB Elements ( like in color-section) you can drag&drop every (accept color-section) other ALB Element in the Cells.

    Thats all – no magic

    in reply to: General styling issue on multilangiage site (WPML) #942508

    i use WPML myself and the styling for each language is in my opinion a feature and not a bug.
    the thing is that the whole enfold option page is per language.
    So my advice is to make first all of the styling and then the content in different languages.

    F.e if you put in the quick css of your page ( english Version) some entries – these entries aren’t automatically added to the other languages.
    So if you like to have overall the same styling – and f.e. your are satisfied with the english version go and export on the englisch Enfold Options Page the theme-settings file.
    Switch to the other languages and import that file for each language.

    This is as i said for me a feature – because e.g. i can have a turkish and a german version of one site. the turkish prefer to have saturated colors on the other hand, germans like harmonious colors. ( please no generalization – but on the whole this might be true – see some turkish newspapers )
    So the one could have high color contrast – the other not.
    Same with font-family etc.

    in reply to: Social Icons in Mobile Menu #942478

    @project_co_uk : for you it must be (if social_bookmarks are on top)

    you have to erase the rule for

    #av-burger-menu-ul li.social_icon_1 {
     padding-left: 40px
    }

    and then :

    #av-burger-menu-ul li.burger-social {
        float: left;
    }
    
    #av-burger-menu-ul li.burger-social a {
        padding: 10px !important;
        border-bottom: none !important;
    }
    
    #av-burger-menu-ul li.social_icon_4 {
     padding-left: 40px
    }
    
    #av-burger-menu-ul .av-active-burger-items:not(.burger-social) {
        clear: left;
    }
    
    .burger-social a {
        width: 50px;
    }
    
    .burger-social a::before {
        left: 15%;
        position: relative;
    }
    
    #av-burger-menu-ul .av-social-link-facebook.burger-social a:hover {color:#fff !important; background-color:#37589b !important }
    #av-burger-menu-ul .av-social-link-twitter.burger-social a:hover {color:#fff !important; background-color:#46d4fe !important }
    #av-burger-menu-ul .av-social-link-youtube.burger-social a:hover {color:#fff !important; background-color:#a72b1d !important }
    #av-burger-menu-ul .av-social-link-instagram.burger-social a:hover {color:#fff !important; background-color:#a67658 !important }
    • This reply was modified 7 years, 2 months ago by Guenni007.
    in reply to: Social Icons in Mobile Menu #942471

    there must be additional settings concerning to your hover on hamburger menu in your page.

    by the way if there is a prepend ( social_bookmarks on top) then the order is reversed.
    Means on the left there is the last icon and on the right the first :

    So my code above must be changed to the last ( it there are 3 icons ):

    #av-burger-menu-ul li.social_icon_3 {
     padding-left: 40px
    }

    why the first menu point is on the same place i will have a look – but i guess it maybe only a clearing issue.
    edit:

    #av-burger-menu-ul .av-active-burger-items:not(.burger-social) {
        clear: left;
    }
    • This reply was modified 7 years, 2 months ago by Guenni007.
    in reply to: Style All Headings like "Modern" in Special Headings #942460

    no Nikko – that would be not enough. Because i think he likes to transform all headings to (f.e. a h3 standard heading – with that small line besides) to modern style (without that line). ( And styling is not implemented in headings advanced styling options)

    If it is only that line that disturbed him – that was easy to get rid of

    you can set all headings as Nikko said on that advanced styling to font-weight : normal (300) or you put this to quick css

    .av-special-heading-tag  { font-weight: 300} 
    .special-heading-border { display: none}

    maybe an !important on font-weight is necessary

    • This reply was modified 7 years, 2 months ago by Guenni007.
    in reply to: Page shouldn't be scrollable when lightbox is opend #942459

    yes that is the line above from shortcodes.js and its calculation. it adds that css if window height is smaller than the sum of the other heights

    in reply to: Social Icons in the Footer #942284

    see post there – i answered on that thread

    you can see result here – dont know why on your site the hover effect is like it is:

    https://webers-testseite.de/weber/

    • This reply was modified 7 years, 2 months ago by Guenni007.
    in reply to: Social Icons in Mobile Menu #942277

    do this in quick css:
    and have a look:

    #av-burger-menu-ul li.burger-social {
        float: left;
    }
    
    #av-burger-menu-ul li.burger-social a {
        padding: 10px !important;
        border-bottom: none !important;
    }
    
    #av-burger-menu-ul li.social_icon_1 {
     padding-left: 40px
    }

    but i think this looks better if you do not prependTo but apendTo
    here:

    $(socialString).each(function() {
    				$(this).appendTo('#av-burger-menu-ul');
    			});
    in reply to: WP-MULTILANG COMPATIBILE #942264

    you are kidding – no : this is only an advice to take the nice and costless polylang.
    (meanwhile the lifetime licenses on wpml is no longer available – i have an old contract)
    here on board there are a lot of satisfied Polylang users

    in reply to: Size of burger menu on smaller devices #942259

    same shit different name: with mediaquery (play with the values and determine the 480px if it is small enough etc.

    @media only screen and (max-width: 480px) {
      .av-hamburger-inner, .av-hamburger-inner::before, .av-hamburger-inner::after {
        width: 30px;
        height: 2px;
    }
    .av-hamburger-inner::before {
        top: -8px;
    }
    .av-hamburger-inner::after {
        bottom: -8px;
    }
    }
    in reply to: Thickness of three lines on burger menu #942258

    have a look if this fits your whishes:

    .av-hamburger-inner, .av-hamburger-inner::before, .av-hamburger-inner::after {
        width: 40px;
        height: 5px;
    }
    
    .av-hamburger-inner::before {
        top: -12px;
    }
    .av-hamburger-inner::after {
        bottom: -12px;
    }

    the hight is what you asked for , width is clear – and top and bottom values determines the distance

    in reply to: WP-MULTILANG COMPATIBILE #942205

    i have a lifetime license from WPML – but polylang seem to do a good job for / in enfold too

    in reply to: Social Icons in the Footer #942202

    by the way – on Enfold Options – Header – Header behavior – please checkmark that “Let logo and menu position adapt to browser window”
    And have a look if this isn’t better for your big wide menu!

    On Main Menu – what do you have on : “Menu Items for mobile” ?

    in reply to: Social Icons in the Footer #942200

    one after the other

    1)

    #menu-item-668 a .avia-menu-text {
        box-shadow: 2px 2px 5px #333;
    }

    in reply to: Social Icons in the Footer #942194

    and afterwards ( you don’t want to have both footer and socket links) goto enfold options – footer and deselect social icons there

    in reply to: Social Icons in the Footer #942193

    now put in the widget:

    <ul class="noLightbox social_bookmarks icon_count_4"><li class="social_bookmarks_facebook av-social-link-facebook social_icon_1"><a target="_blank" href="https://www.facebook.com/UNITE4HUMANITY" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Facebook"><span class="avia_hidden_link_text">Facebook</span></a></li><li class="social_bookmarks_instagram av-social-link-instagram social_icon_2"><a target="_blank" href="https://www.instagram.com/unite4humanity_/" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Instagram"><span class="avia_hidden_link_text">Instagram</span></a></li><li class="social_bookmarks_twitter av-social-link-twitter social_icon_3"><a target="_blank" href="https://twitter.com/Unite4Humanity_" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Twitter"><span class="avia_hidden_link_text">Twitter</span></a></li><li class="social_bookmarks_youtube av-social-link-youtube social_icon_4"><a target="_blank" href="https://www.youtube.com/channel/UC3HWLg_brLlmepvvdGKm4SA" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Youtube"><span class="avia_hidden_link_text">Youtube</span></a></li></ul>
    
    in reply to: Social Icons in the Footer #942190

    But i believe that this couldn’t work –
    you have to have the social media activated on Enfold Options dialog – without these links could not work.

    in reply to: Social Icons in the Footer #942188

    yes because you haven’t used the code tag here on board i have transfered your wrong quotation marks.

    <ul class="noLightbox social_bookmarks icon_count_5">
    <li class="social_bookmarks_mail av-social-link-mail social_icon_1"> (Email address hidden if logged out) ?subject=Inquiry from WGM Website"><span class="avia_hidden_link_text">Mail</span></li>
    <li class="social_bookmarks_facebook av-social-link-facebook social_icon_2"><span class="avia_hidden_link_text">Facebook</span></li>
    <li class="social_bookmarks_instagram av-social-link-instagram social_icon_3"><span class="avia_hidden_link_text">Instagram</span></li>
    <li class="social_bookmarks_twitter av-social-link-twitter social_icon_4"><span class="avia_hidden_link_text">Twitter</span></li>
    <li class="social_bookmarks_youtube av-social-link-youtube social_icon_5"><span class="avia_hidden_link_text">YouTube</span></li>
    </ul>
    in reply to: Social Icons in the Footer #942184

    if it works – don’t know why if you haven’t set the social things on Enfold options – try:

    just a moment i did have your wrong quotatin marks

    <ul class="noLightbox social_bookmarks icon_count_5">
    <li class="social_bookmarks_mail av-social-link-mail social_icon_1"> (Email address hidden if logged out) ?subject=Inquiry from WGM Website"><span class="avia_hidden_link_text">Mail</span></li>
    <li class="social_bookmarks_facebook av-social-link-facebook social_icon_2"><span class="avia_hidden_link_text">Facebook</span></li>
    <li class="social_bookmarks_instagram av-social-link-instagram social_icon_3"><span class="avia_hidden_link_text">Instagram</span></li>
    <li class="social_bookmarks_twitter av-social-link-twitter social_icon_4"><span class="avia_hidden_link_text">Twitter</span></li>
    <li class="social_bookmarks_youtube av-social-link-youtube social_icon_5"><span class="avia_hidden_link_text">YouTube</span></li>
    </ul>

    now you can copy paste

    • This reply was modified 7 years, 2 months ago by Guenni007.
    in reply to: Social Icons in the Footer #942183

    your code has no closing tags at all.
    a ul opens but not closing
    a li the same try this :

    <ul class=”noLightbox social_bookmarks icon_count_3″>
    <li class=”social_bookmarks_mail av-social-link-mail social_icon_1″> (Email address hidden if logged out) ?subject=Inquiry from WGM Website”><span class=”avia_hidden_link_text”>Mail</span></li>
    <li class=”social_bookmarks_linkedin av-social-link-linkedin social_icon_2″><span class=”avia_hidden_link_text”>Linkedin</span></li>
    <li class=”social_bookmarks_youtube av-social-link-youtube social_icon_3″><span class=”avia_hidden_link_text”>YouTube</span></li>
    </ul>

    just be more specific :

    .avia_textblock li {
        list-style-type: none;
        position: relative;
        padding-left: 10px !important;
        margin-left: 5px !important;
    }
    
    .avia_textblock li:before {
        content: "\25BA \0020";
        font-size: 12px;
        position: absolute;
        top: 1px;
        left: -10px;
    }

    margin-left is for the indent – if you like to have no line to the Text above – give it a bit more px’s

    in reply to: make accordion expand on hover instead of click #942176

    What did you do on touchscreens ?

    in reply to: Social Icons in the Footer #942154

    how did you place the social icons there – by text widget

    for a while i wrote a sozial-bookmarks widget for that – but it only places the bookmarks set on Enfold Options dialog –
    you can see it on my testing page in the footer on the right column: https://webers-testseite.de
    So if you don’t like to show a different set than on top this would only work if you define all and get rid of some in the footer via display:none.

    in reply to: Social Icons in the Footer #942153

    can you try this in quick css :

    #footer .social_bookmarks {
        position: relative;
        left: -8px;
        top: -15px;
    }
    
    #footer .social_bookmarks a::before {
        font-size: 20px;
        color: #fff !important;
    }

    maybe it is better to define the link color in your enfold options – general styling – footer : highlight color

    in reply to: Header two Logos #942047

    first of all allthough i’m german too – i have to write here english ( and sorry it is not the best – I do not have language practice any more for years)
    so if there is something not clear : ask for german explanation.

    First use a child-theme ! Because it has many advantages – and adjustments do not get lost on parent update !

    1) Split both of your logos – try to give them similar dimensions.
    2) it is for some reasons better to set the enfold options logo to display none ( espacially if you have that second logo floating on the right side)
    3) insert this to your functions.php of your child theme:

    function add_logos($logo) {
    	$logo .= '<span class="logo first-logo"><a href="/">' ;
    	$logo .= '<img src="/wp-content/uploads/logo1.jpg"/>';
    	$logo .= '</a></span>';
    	$logo .= '<span class="logo second-logo"><a href="a-different-link" target="_blank">' ;
    	$logo .= '<img src="/wp-content/uploads/logo2.jpg"/>';
    	$logo .= '</a></span>';
    	return $logo;
    }
    add_filter('avf_logo_final_output', 'add_logos');

    3a) you see you can give each logo his own link ( if you don’t like the target blank on second logo erase it)
    4) now the things come to quick css ( depends on dimensions and header settings we will see later):

    .logo, .logo a { display: inline-block}
    .logo:first-child img {display: none}
    .logo.first-logo { z-index: 3 }
    .logo.second-logo { z-index: 2 }
    .logo.second-logo { width: 100% }
    .logo.second-logo a { float: right !important }
    .logo.first-logo a,  .logo.second-logo a { display: inline-flex }
    .main_menu:not(:first-of-type) { display: none !important }

    and for the responsive case:

    @media only screen and (max-width: 768px) {
    .responsive #top .logo:first-child {display: none}
    .responsive #top .logo.first-logo {display: inline !important}
    .logo.second-logo a {float: left !important}
    .responsive #top #wrap_all .container {max-width: 95%; width: 95%}
    }

    5) we will see when this is done

    see here: https://webers-testseite.de/cynthia/mille-deco/

    • This reply was modified 7 years, 3 months ago by Guenni007.
    in reply to: hreflang (it) + (en) for the home page #942040

    you can insert it via functions.php of child-theme: (guess it is italian)

    add_action('wp_head', 'insert_hreflang_info');
    function insert_hreflang_info() {
    ?>
      <link rel="alternate" href="https://www.borgomummialla.com/" hreflang="it">
    <?php
    }

    but i guess that the x-default is ok – it tells the bots that this is the default language
    and if an international visitor ( someone else than italian or english) comes to your site it is redirected to the root directory

    on my opinion this is the perfect setting !

    the error is not the setting of the hreflang but that it is redirected to the /it/ page !

    so your have here to decide what is your x-default :
    maybe you test this better ( and i think for international visitors the english is better):

    add_action('wp_head', 'insert_hreflang_info');
    function insert_hreflang_info() {
    ?>
      <link rel="alternate" href="https://www.borgomummialla.com/en/"  hreflang="x-default">
    <?php
    }

    Link: https://www.sistrix.com/ask-sistrix/onpage-optimisation/how-do-i-correctly-use-the-new-x-default-hreflang-link-attribute-for-international-targets/

    in reply to: Youtube video aspect ratio displaying incorrectly #941989

    it all based on the direct parent container of the iframe – if it is like on your test page: avia-iframe-wrap
    than replace the above lines with:

    var $allVideos = $(".avia-iframe-wrap iframe[src*='www.youtube.com']"),
    // Hier das Element hinein welches fluidieren soll
          $fluidEl = $(".avia-iframe-wrap");

    It is probably also a good idea to include these two things only on the pages that it concerns.
    if you don’t know how to – ask please

    in reply to: Youtube video aspect ratio displaying incorrectly #941987

    so here a bit optimised:

    all comes to functions.php of your child theme:

    here a debounce function – easy to use ( if you have a resize function – only replace resize with smartresize)
    here is a timing of 250ms preselected

    function add_debounce_function(){
    ?>
    <script>
    (function($,sr){
        var debounce = function (func, threshold, execAsap) {
            var timeout;
            return function debounced () {
                var obj = this, args = arguments;
                function delayed () {
                    if (!execAsap)
                        func.apply(obj, args);
                    timeout = null;
                };
                if (timeout)
                    clearTimeout(timeout);
                else if (execAsap)
                    func.apply(obj, args);
                timeout = setTimeout(delayed, threshold || 250);
            };
        }
        jQuery.fn[sr] = function(fn){  return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
    })(jQuery,'smartresize');
    </script>
    <?php
    }
    add_action('wp_footer', 'add_debounce_function');

    and the code now ( give to the parent container of iframe the class spezialyoutube )

    function custom_video_embed_script(){
    ?>
    <script>
      (function( $ ) {
          "use strict";
          $(function() {
          var $allVideos = $(".spezialyoutube iframe[src*='www.youtube.com']"),
          $fluidEl = $(".spezialyoutube");
          $allVideos.each(function() {
          $(this)
            .data('aspectRatio', this.height / this.width)
            .removeAttr('height')
            .removeAttr('width');
          });
    
          $(window).smartresize(function () {
          var newWidth = $fluidEl.width();
          $allVideos.each(function() {
          var $el = $(this);
              $el
              .width(newWidth)
              .height(newWidth * $el.data('aspectRatio'));
              });
            }).resize();
        });
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_video_embed_script');

    see: https://webers-testseite.de/weber/youtube-windows/

    in reply to: Youtube video aspect ratio displaying incorrectly #941919

    The thing with those codes of youtube is that often there are width and heights information about the video – but that causes this behavior.

    if it works it will be better if we debounce this resize function.
    it is always a good advice to do
    throttling on scroll events and
    debouncing on resize events

    see here the result on left with resize function – on the right normal behavior : https://webers-testseite.de/weber/youtube-windows/

    If you resize the browser window – you will see that debouncing is working . (every 250ms the function resizes the window of the given element)

    another clou of that code is – that aspect ratio is part of the calculation !

    in reply to: Youtube video aspect ratio displaying incorrectly #941880

    i think there will be only a jquery solution – and that is sad it has to be a function that will check the screen width:
    Source: https://css-tricks.com/fluid-width-youtube-videos/

    this to functions.php of your child theme:
    the thing is we had to find the parent container of the youtube videos in your installation ( i suposed it could be wpb_wrapper)

    this is the only line to be adjusted: $fluidEl = $(".wpb_wrapper");

    function custom_youtube_script(){
    ?>
    <script>
      (function( $ ) {
          "use strict";
    		$(function() {
    			var $allVideos = $("iframe[src^='https://www.youtube.com']"),
    			    // The element that is fluid width
    			    $fluidEl = $(".wpb_wrapper");
    
    				$allVideos.each(function() {
    
    					$(this)
    						.data('aspectRatio', this.height / this.width)
    						.removeAttr('height')
    						.removeAttr('width');
    
    				});
    
    				$(window).resize(function() {
    
    					var newWidth = $fluidEl.width();
    					$allVideos.each(function() {
    
    						var $el = $(this);
    						$el
    							.width(newWidth)
    							.height(newWidth * $el.data('aspectRatio'));
    					});
    				}).resize();
    		});
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_youtube_script');
Viewing 30 posts - 8,251 through 8,280 (of 11,513 total)