Forum Replies Created

Viewing 30 posts - 7,831 through 7,860 (of 11,715 total)
  • Author
    Posts
  • in reply to: remove google fonts #1000329

    i can see that enfold uses this font ( register-backend-styles.php ) if you are working on general styling by predefined color schemes ( black or blue/yellow)
    but if you do not have this in a css or in enfold / advanced styling – this should not be loaded.
    Anyway – if all of your fonts are loaded over an own server ( manually socalled) and not by google – you can do this into functions.php of your child-theme:

    add_action( 'init', 'enfold_customization_switch_fonts' );
    function enfold_customization_switch_fonts() {
        global $avia;
        $avia->style->print_extra_output = false;
    }

    on class-style-generator.php you can see the function print_extra_output and that it is for google font loading (line 355)

    to realy get rid of the last rest you can use this plugin: remove-google-fonts-references
    this works still with newest enfold

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

    and by the way – sometimes it is only the tmp directory missing (which is defined on wp-config.php) on the wordpress installation.

    in reply to: remove google fonts #1000311

    and if you see gtmetrix results :
    click to enlarge

    you see that the results are not so bad

    • This reply was modified 7 years, 2 months ago by Guenni007.
    in reply to: remove google fonts #1000301

    first try to determine where the font comes from!
    maybe you can post a link – so we can have a look where it comes from

    and then it might not be that font – because Metrophobic from google only – has only one font-weight (400) and latin only – so this might load very fast.

    in reply to: Align Grid Row Left Side to Site Box #1000298

    And once again – for your background-image in the right cell !
    on mobile this is nearly gone. if you like to show something ( the image ) you can setup a min-height – or do a whitespace hr in it with a given height

    or if you only want it for mobile devices and not for small screens:

    add_action( 'wp_head', 'landingpage_for_mobile', 10 );
    function landingpage_for_mobile() {
    if(wp_is_mobile()){
    ?>    
    <script>
    	if (window.location.pathname == '/' ) {
    	   window.location = "/impressum/";
    	}
    </script>
    <?php
    }
    }

    impressum is just my test setting if it works on an Enfold Installation – you might adjust this to your needs

    well you can have a different landing page for that indeed:
    just do this to your functions.php of your child-theme:

    add_action( 'wp_head', 'landingpage_for_mobile', 10 );
    function landingpage_for_mobile() {
    ?>    
    <script>
    	if (window.location.pathname == '/' && jQuery(window).width() <= 480) {
    	   window.location = "/impressum/";
    	}
    </script>
    <?php
    }
    in reply to: Urgent !! How to change opacity ? #1000253

    and by the way an opacity is on definition
    0 (zero) to 1 (100%)
    so if there is 100 this is wrong
    if you like to have something between those values (e.g. 0.47) be sure to use a dot not a comma

    in reply to: Background Color Preloader Site #1000230

    Übrigens: solange du an dem Layout rumschraubst, würde ich das merging abstellen.
    Das verhindert zusätzlich zu den Browsercache das Überprüfen der Änderungen.
    So muss man immer wieder die Teile neu anlegen lassen.

    in reply to: Background Color Preloader Site #1000227

    look to your code – the exclamation marks are not needed – and when you set it – than both

    
    #top .av-siteloader-wrap { 
       background-image: url( https://gipfelglück.bayern/wp-content/uploads/2018/06/slider_home_01.jpg )
    }
    in reply to: Background Color Preloader Site #1000225

    test it yourself – nothing can go wrong with it

    by the way – a container can have more than one background-image:
    https://webers-testseite.de/multiple-background-images/

    in reply to: LayerSldier Menu does show on firefox, but not on Chrome. #1000220

    can you post the code here – i do always like to learn something
    and explain what you have done.

    • This reply was modified 7 years, 2 months ago by Guenni007.
    in reply to: Background Color Preloader Site #1000217

    by the way :lol
    be creative: http://elrumordelaluz.github.io/draGGradients/

    #top .av-siteloader-wrap {
        background: radial-gradient(circle at 89.99% 7.99%, #7e75ff, transparent 67%),radial-gradient(circle at 49.9% 49.64%, #73ffab, transparent 61%),radial-gradient(circle at 8.98% 17.50%, #ffff4a, transparent 58%),radial-gradient(circle at 3.98% 90.04%, #ff94fb, transparent 67%),radial-gradient(circle at 93.01% 92.01%, #ff722b, transparent 61%),radial-gradient(circle at 50% 50%, #ffffff, #ffffff 100%)
    }
    in reply to: Background Color Preloader Site #1000215

    this to quick css

    #top .av-siteloader-wrap {
        background-color: #900;
    }

    maybe an important is neccessary – and empty all cache (if you merge css and js on Enfold – generate a new set)

    in reply to: Code-Block zentrieren #1000206

    ein link zu dem Kalender wäre schön.
    Wenn dieser im Private Content ist, musst du auf einen Mod hier warten.

    in reply to: Ladegeschwindigkeit bei ausgeblendeten Sektionen? #1000203

    Teste doch mal selber was mit den Sachen im DOM passiert. Mach dein Browserfenster schmal und schau nach, was mit dem Element (zB einer color-section passiert.
    Schau diese Testseite – und die Source
    https://webers-testseite.de/color-section-with-display-none/

    klicken für Zoom

    in reply to: Ladegeschwindigkeit bei ausgeblendeten Sektionen? #1000192

    display:none elements are not in the render tree at all.
    visibility:hidden is a different thing!

    display:none Elemente sind zwar im DOM und im CSSOM vorhanden, die Zeit die für die Performance allerdings wichtig ist, ist das Rendering der Seite. Diese Elemente werden aber dann nicht gerendert.
    Schau mal hier : https://developers.google.com/web/fundamentals/performance/critical-rendering-path/render-tree-construction?hl=de
    und folgende Seiten.

    in reply to: WPML problem #1000191

    isn’t there on WPML Settings page itself a “Add Menu Language Switcher”
    click to enlarge:

    so you can handle that to put it in every custom menu you like – and style it a bit on that page.
    To give you the right code – i need a link for that page to give any advice

    in reply to: Align Grid Row Left Side to Site Box #1000168

    Really friendly – thank you for the answer; unfortunately it is not usual here that a positive approach to a solution is answered quickly.
    Your welcome!

    PS : this was the solution for the first (left grid cell – .flex_cell.avia-builder-el-first ) –
    you could transfer this solution to the right one yourself ? ( .flex_cell.avia-builder-el-last )
    but then it will be better to have a unique class for those grid-row element
    maybe ( special-grid-row-left and special-grid-row-right) etc. –

    • This reply was modified 7 years, 2 months ago by Guenni007.
    in reply to: Open video links in lightbox with image hotspot element #1000072

    so the one method works with permanent Tooltip Window open !
    so we than go and do the rest with quick css:

    .avia-tooltip {
        opacity: 0;
        display: none !important;
    }
    
    .av-image-hotspot:hover .avia-tooltip {
        display: block !important;
        opacity: 1 !important;
    }

    this is what comes to functions.php of your child theme:

    function ava_tooltip_script() {
    ?>
    <script type="text/javascript">
    	(function($) {
    		function b() {
    			$(".inner_tooltip a").magnificPopup({
    	    		type: 'iframe',
    	    		mainClass: 'avia-popup mfp-zoom-in',
    	       	});
    		}
    		$(window).load(function() {
    			b();
    		});
    	})(jQuery);
    </script>
    <?php
    }
    add_action( 'wp_footer', 'ava_tooltip_script' );

    see here: https://webers-testseite.de/image-with-hotspost-linking-to-youtube-in-iframes/

    in reply to: Open video links in lightbox with image hotspot element #1000053

    the thing is that the tooltip window (hotspot image on the bottom of my link) only arises when hovering the tooltip
    it does not exist in the DOM till hovering – so my code here: Link has no influence on it.
    Even the DOMNodeInserted function does not work here

    in reply to: Open video links in lightbox with image hotspot element #1000013

    next problem i changed in avia-modal.js the ( i tried both lines ) from mouseenter to click
    but it does not work (even after clearing all caches)

    best solution was in my opinion if we let the mouseenter event – but
    the window must stay open till a link is clicked in the inner tooltip.

    on line 1498 of avia.js : $.AviaTooltip = function(options)

    do we have to change something additional to the avia-modal.js?

    in reply to: Open video links in lightbox with image hotspot element #1000009

    so we can force the links inside the inner_tooltip to open in lightbox by this snippet in functions.php of the child-theme:

    add_action( 'wp_footer', 'ava_tooltip_script' );
    function ava_tooltip_script() {
    	?>
    	<script type="text/javascript">
    	(function($) {
    		function b() {
    			$(".inner_tooltip a").magnificPopup({
    	    		type: 'iframe',
    	    		mainClass: 'avia-popup mfp-zoom-in',
    	       	});
    		}
    		$(window).load(function() {
    			b();
    		});
    	})(jQuery);
    	</script>
    	<?php
    }

    so now see page: https://webers-testseite.de/image-with-hotspost-linking-to-youtube-in-iframes/

    in reply to: Open video links in lightbox with image hotspot element #999996

    this is not the solution – it is a styling point of view.
    If you set the tooltip alway visible (see link above) the inner link (inner_tooltip) does not link in lightbox – allthough the image has the iframe=true thing.
    So for me it would be nice to open the tooltip on click ( you will use than instead of mouseenter the click event) – and then click on the image in the tooltip to oben the lightbox.
    But i do not realy know why the link does not open in lightbox.

    in reply to: different logo #999903

    zunächst sind das ja nur beispiele – ich denke du wirst keine Seite 6, 42, oder 54 haben.
    Aber was ich oben schrieb – der fehler ist: ohne if kein elseif.
    wenn du es dahingehend änderst wird WordPress nicht mehr meckern:

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo){
        if ( is_page( array( 6, 42, 54 ) ) ) {
        	$logo = "http://www.domain.com/wp-content/uploads/logoforpage22.jpg"; 
        }
        return $logo;
    }
    in reply to: Autoplay local host video in Lightbox #999893

    on my end here it starts auto and in lightbox: http://alsafahalal.com/al-safa-revamp/

    in reply to: different logo #999889

    hast du denn einen if in deinem Code drin?
    Ein elseif macht nur sinn, wenn ein if vorhanden ist.

    in reply to: Image size for 1/2 column #999870

    When I saw your posting number, I wanted to make sure that it is not such a mistake that has happened to everyone at the beginning.

    in reply to: different logo #999865

    Du kannst es pro Seite entscheiden- wobei es für dich gut wäre die Page-id zu kennen:

    Dieses hier in die functions.php deines Child-themas:

    Es soll dir verdeutlichen wie es gehen kann mit den if clauses. – wobei du Seiten auch als array nutzen kannst
    also da zB Seite 6, 42 und 54 erhalten dann ein logo –
    du kannst alles was WordPress an conditional tags bereit hält nutzen: Link

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo){
        if( is_page(21) ) {
        	$logo = "http://www.domain.com/wp-content/uploads/logoforpage21.jpg"; 
        }
      
        elseif ( is_page( array( 6, 42, 54 ) ) ) {
        	$logo = "http://www.domain.com/wp-content/uploads/logoforpage22.jpg"; 
        }
    
        elseif ( is_page() && !is_page(1307) )  {
        	$logo = "http://www.domain.com/wp-content/uploads/logoforpage23.jpg";  
        }
        return $logo;
    }

    wenn man wiedersprüchliche Aussagen hat wie jetzt die da unten – muss man sehen ( da würden alle Seiten außer Seite 1307 das logo 23 bekommen)

    in reply to: Kundenempfehlung Link _blank-Attribut ändern #999854

    try this:

    function change_target_to_self(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
    	$('.avia-testimonial-link').attr('target', '_self'); 
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'change_target_to_self');

    and by the way the DOM is ready is not enough on that

Viewing 30 posts - 7,831 through 7,860 (of 11,715 total)