Forum Replies Created

Viewing 30 posts - 4,531 through 4,560 (of 11,877 total)
  • Author
    Posts
  • in reply to: Disable Background images only for tablets #1295353

    Aber du hast es doch ganz gut gemacht. Der Wechsel mit den Color-Sections und dem Einsatz von einmal einem Image und zum Anderen einem Hintergrund Bild.
    Wo genau willst du jetzt was ausblenden?

    in reply to: Disable Background images only for tablets #1295324

    So, with your nick – it’s not that hard to guess your domain – it would also be possible to publish the page it’s about – so it’s much easier to give accurate advice.

    in reply to: How put two functional arrows in the Tab Section ? #1295297

    i did it this way – an for simplicity reasons i only take html entities to form the arrows:
    this to child-theme functions.php

    function ava_tab_section_arrows(){
    ?>
    <script>
    (function($) {
        $('.av-tab-section-container').each(function() {
            $(this).find('.av-tab-section-outer-container').prepend("<div class='av-tabsection-navs av-tabsection-nav-prev'>&lang;</div><div class='av-tabsection-navs av-tabsection-nav-next'>&rang;</div>");
            var arrowColor = $(this).find('.av-tab-section-tab-title-container').css('background-color');
            $(this).find('.av-tabsection-navs').css('color', arrowColor);
    
            var that = this;
            $('.av-tabsection-nav-prev', this).on('click', function(){	
            	$(this).closest('.av-tab-section-outer-container').find('.av-active-tab-title').prev().trigger('click');  
            });
            $('.av-tabsection-nav-next', this).on('click' , function(){	
                $(this).closest('.av-tab-section-outer-container').find('.av-active-tab-title').next().trigger('click');
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_tab_section_arrows');

    this to quick css:

    .av-layout-tab .container {
      padding-left: 100px;
      padding-right: 100px;
    }
    .av-tabsection-navs {
      opacity: 0.1;
      position: absolute;
      top: 55%;
      cursor: pointer;
      z-index: 5;
      font-family: arial;
      font-size: 40px;
      font-weight: bold;
      color: #333;
      height: 40px;
      width: 40px;
      transition: all 1s ease
    }
    .av-tab-section-outer-container:hover .av-tabsection-navs {
      opacity: 1;
      transition: all 1s ease;
      text-shadow: 8px 1px 5px #aaa;
    }
    .av-tab-section-outer-container:hover .av-tabsection-navs {
      transition: all 1s ease;
      transform: scale(1.5);
    }
    .av-tabsection-navs.av-tabsection-nav-prev {
      left: 0;
      text-align: right;
    }
    .av-tabsection-navs.av-tabsection-nav-next {
      right: 0;
      float: left;
    }
    @media only screen and (max-width:767px)  {
      .responsive #top #wrap_all .av-layout-tab .container {
        padding: 0 30px;
      }
      .av-tabsection-navs {
        width: 25px;
      }
    }

    Result page: https://webers-testseite.de/tab-section/
    If your tab-title background is white – overwrite the calculated color of the arrows by css with important.

    • This reply was modified 4 years, 8 months ago by Guenni007.
    in reply to: Footer that appears on scrolling #1295144

    see complete post here: https://kriesi.at/support/topic/fixed-curtain-footer/
    With a little distance now – i think i can try a combination of ismaels code and mine to optimize the script.

    in reply to: Footer that appears on scrolling #1295141

    this is called curtain effect and you can try this:
    https://kriesi.at/support/topic/fixed-curtain-footer/#post-691135

    see result here ( only starting page ) : https://webers-testseite.de/pureinstall/

    on my testpage i use this in child-theme functions.php:

    // curtain effect of footer - 
    function add_curtain_footer_effect(){
    if(is_home()){  
    ?>
    <script type="text/javascript">
    (function($) {
        $(window).bind("load resize", function() {
    	    setTimeout( function() {
    			var socketh = $('#socket').outerHeight();
    			var footerh = $('#footer').outerHeight();
    			var spacerh = socketh + footerh - 5 ;
    
    			$('#distance').css('height', spacerh );
    			$('#footer').css('bottom' , socketh);
    	    }, 150) 
        });
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'add_curtain_footer_effect');

    and on quick css ( pay attention as the script above this is all only for home – so adjust to your needs):

    .home #main > div  {
        z-index: 3 !important;
        position: relative !important;
    }
    
    .home #footer { 
        left: 0;
        width: 100%;
        z-index: 2;
       position: fixed
    }
    
    .home #socket {
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 2;
        position: fixed
    }
    
    .home #main #distance  {
        clear: both;
        z-index: 0 !important;
    }
    in reply to: How put two functional arrows in the Tab Section ? #1295004

    And that function does not include the case if there are more than one tab-section on that page!

    in reply to: Content (images, text) zeitgesteuert austauschen #1294907

    or for example per season:
    please read the code carefully. The selector where this should happen is an ID !
    And the images should then also be named as in the code and the location would be in the case then /uploads/season-images

    Insert on the Element to have that scheduling an image – maybe the one that is set on default and style it as you like (cover – contain – left – top etc. pp – scroll – fixed etc)

    function scheduling_per_season(){
    ?>
    <script>
      var currentTime = new Date();
      var month = currentTime.getMonth() + 1;
      var imglocation = "/wp-content/uploads/season-images/";  // put the images in this folder
    
    	switch(true) {
    		case (month >= 6 && month <= 8):
    			var seasonImg = "summer.jpg";
    			var season = "summer";
    			break;
    		case (month >= 9 && month <= 11):
    			var seasonImg = "fall.jpg";
    			var season = "fall";	  
    			break;
    		case (month == 12 || month == 1 || month == 2):
    			var seasonImg = "winter.jpg";
    			var season = "winter";
    			break;
    		default:
    			var seasonImg = "spring.jpg";
    			var season = "spring";
    	}
      	document.getElementById('changed_on_season').style.backgroundImage = 'url(' + imglocation + seasonImg + ')';
    	document.body.classList.add(season);
    </script>
    <?php
    }
    add_action('wp_footer', 'scheduling_per_season');

    it will attach in addition to body a class according to the season. this seems to be more simple – because you can have on quick css rules related to the season.

    Result-Page: https://webers-testseite.de/season-scheduling/

    • This reply was modified 4 years, 8 months ago by Guenni007.
    in reply to: Content (images, text) zeitgesteuert austauschen #1294904
    in reply to: Widget inside hamburger menu #1294899

    you can take a different hook – you don’t need the header as widget area:
    f.e: there is :

    ava_after_body_opening_tag

    so place this to your child-theme functions.php:

    add_action( 'ava_after_body_opening_tag', 'burger_widget_area' );
    function burger_widget_area() {
      dynamic_sidebar( 'burgerwidget' );
    }

    and then :

    function body_widget_to_burger(){
    ?>
    <script>
    (function($){
      $('body > .widget').css('display' , 'none');
      $('#header').one('click', '.av-main-nav-wrap', function() {
        var isMobile  = $('.av-burger-menu-main').css('display');
        $('#top #av-burger-menu-ul').css({
          'display' : 'block',
          'height' : 'auto',
          'vertical-align' : 'top',
          'padding' : '140px 0 0',
        });
        var burger_widget = $('body > .widget').detach();
        
        burger_widget.each(function() {
          $(this).appendTo('.av-burger-overlay-inner').css({
            'display' : 'block',
            'position': 'relative',
            'width': '84%',
            'text-align': 'left',
            'margin-left': '8%',
            'border-top': '1px dashed #333',
          });
        });
        
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'body_widget_to_burger');

    create a widget area : burgerwidget
    place in this area all your “hamburger widgets”

    in reply to: Flexible column layouts #1294849

    The grid-row element is a drag and drop element for other elements.
    so insert a grid-row and click on add cell to have three cells. – Now click on “Set cell size” and choose : 1/2 1/4 1/4:
    ( click to the images to enlarge)

    Now you can pull 1/1 containers to those cells f.e.:

    you see you can nest those columns then.

    One disadvantage is that the grid-row is a full-width container.
    If it has to have the sam width as the other containers there is a script solution for that.

    this to child-theme functions.php:

    /******** Gridlayout not fullsize - give a custom-class to the grid-row element:  "grid-notfull" *********/
    /**** adjust the 1310px in the code here  to your setting on enfold - general Layout - dimensions ****/
    function grid_layout_notfull(){
    ?>
    <script>
    (function($){
        $('.av-layout-grid-container.grid-notfull' ).wrap( '<div class="main_color notfullsize color1"></div>');
        $('.notfullsize').css({"clear": "both", "width": "100%" , "float": "left" , "position": "static" , "min-height": "100px" });
        $('.grid-notfull').css({"max-width": "1310px", "margin": "0 auto" , "padding": "0 50px"});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'grid_layout_notfull');

    see here an example page – on top full-width on the bottom with custom-class: grid-notfull
    https://webers-testseite.de/grid-row-alb/

    in reply to: How to add animated background #1294848

    sorry – you can see how gradient are made f.e. here: https://www.cssportal.com/css-gradient-generator/
    the code you got there is meant for css like quick css. If you like to define a color via script you can do that via:

    element.css( "color", "#333");
    or if you have more than one attribute:

    element.css({ 
    	"color" : "#333",
    	"background-color" : "#900",
    	"display": "block" ,
    });

    so for script you have to replace in the markup you got there https://www.cssportal.com/css-gradient-generator/
    f.e:

    background: #121FCF;
    background: -webkit-linear-gradient(to top right, #121FCF 0%, #CF1512 100%);
    background: -moz-linear-gradient(to top right, #121FCF 0%, #CF1512 100%);
    background: linear-gradient(to top right, #121FCF 0%, #CF1512 100%);

    to:

    "background": "#121FCF",
    "background": "-webkit-linear-gradient(to top right, #121FCF 0%, #CF1512 100%)",
    "background": "-moz-linear-gradient(to top right, #121FCF 0%, #CF1512 100%)",
    "background": "linear-gradient(to top right, #121FCF 0%, #CF1512 100%)",

    now you only have to replace the static colors with the script calculated
    and because it is a script variable you had to interrupt the html markup (close doubel qoute – insert script calculated values ( “+color1+” and “+color2+” ) – and open again the html markup. ( :lol: it is javascript crispr ;) )

    now there is :

    "background": "#121FCF",
    "background": "-webkit-linear-gradient(to top right, "+color1+" 0%, "+color2+" 100%)",
    "background": "-moz-linear-gradient(to top right, "+color1+" 0%, "+color2+" 100%)",
    "background": "linear-gradient(to top right, "+color1+" 0%, "+color2+" 100%)",
    in reply to: Disable Background images only for tablets #1294814

    maybe you are able to set up some media querries –
    you know the rules with min-width and max-width
    but there are also: device width – and that you can use

    f.e.:

    @media only screen 
    	and (min-device-width : 768px) 
    	and (max-device-width : 1024px) 
    	and (orientation : portrait) 
    	and (-webkit-min-device-pixel-ratio : 2) 
    {
    		/**** your rules here  ****/
    }

    but the devices are numerous, so you probably won’t get 100% coverage of all devices.
    See here a link: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    As far as i know Enfold has this on avia-compat.js at the beginning:

    var avia_is_mobile = false;
    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && 'ontouchstart' in document.documentElement)
    {
    	avia_is_mobile = true;
    	document.documentElement.className += ' avia_mobile ';
    }
    else
    {
    	document.documentElement.className += ' avia_desktop ';
    }
    document.documentElement.className += ' js_active ';

    so all mobile devices get the class on html : avia_mobile
    mybe a combination of this and the media-query is a good way to do this

    @media only screen and (min-device-width : 768px) {
    	.responsive.avia_mobile #top * {
    		background-image : none !important;
    	}
    }

    * but won’t that lead to very unsightly big gaps in your layout?
    Sliders got often imgs – so they are untouched but color sections that contain only one heading, etc. pp.
    think of that a lot of gradients are set by background-image.

    so to only get rid of background-images with url you can do that – but – see *

    @media only screen and (min-device-width : 768px) {
    	.responsive.avia_mobile #top *[style*="url("]{
    		background-image : none !important;
    	}
    }
    • This reply was modified 4 years, 8 months ago by Guenni007.
    in reply to: How to add animated background #1294640

    but btw: i see there is a syntax error in the css setting :

    $('#gradient').css({
    	   background: "-webkit-gradient(linear, left top, right top, from("+color1+"), to("+color2+"))"}).css({
    	    background: "-moz-linear-gradient(left, "+color1+" 0%, "+color2+" 100%)"     });

    it works because the -moz-linear-gradient is working – but the first background couldn’t work.

    this is better:

    $('#gradient').css({
    	"background" : "-webkit-linear-gradient(to left, "+color1+" 0%, "+color2+" 100%)",
    	"background" : "-moz-linear-gradient(left, "+color1+" 0%, "+color2+" 100%)",
    	"background" : "linear-gradient(to left, "+color1+" 0%, "+color2+" 100%)",
    });

    you can change it to diagonal :

    $('#gradient').css({
       "background": "-webkit-linear-gradient(to top right, "+color1+" 0%, "+color2+" 100%)",
       "background": "-moz-linear-gradient(to top right, "+color1+" 0%, "+color2+" 100%)",
       "background": "linear-gradient(to top right, "+color1+" 0%, "+color2+" 100%)",
    });

    the background without double quotes is ok – and will work too – but this is more proper with quotes.
    the comma on the last background is not needed – but looks better – not necessary
    but the second .css in the rules is nonesense

    • This reply was modified 4 years, 8 months ago by Guenni007.
    in reply to: How to add animated background #1294613

    this is a snippet for the child-theme functions.php.
    Take this code: https://kriesi.at/support/topic/animated-js-color-background-in-color-sections/#post-530485
    as you can see inside the code: the selector where this background is applied is: #gradient
    so if you have a color-section and goto advance tab you see the “Custom ID Attribute” input field – insert : gradient

    thats it.

    PS : it is possible without child – but more complex.

    it is enough to delete or comment out these lines :

    if( burger_menu.is(":visible") )
    {
    	this.css({top: 'auto', position: 'absolute'}); fixed = false;
    	return;
    }

    This : .responsive #top .av-switch-990.av-submenu-container on media querries setting had to be changed because:
    these are unfortunately set to “!important” in the corresponding menu.css these are very difficult to write over afterwards. Therefore we must also generate a child-theme menu.css. So it is probably best if we upload all changed menu files into the shortcodes child-theme folder.
    Download all from here: https://webers-testseite.de/menu-files.zip

    Upload them to your child-theme shortcodes folder – so that these are loaded then, you should have this in 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);

    and this comes to quick css

    @media only screen and (max-width: 989px) {
      #top .sticky_placeholder {
        position: absolute;
      }
    }

    Result see here: https://webers-testseite.de/transparent-header/

    PS: i did not test it for fixed-frame – maybe there had to be some adjustments on that calculation.

    • This reply was modified 4 years, 8 months ago by Guenni007.

    Remove this:

    #top #wrap_all .av-social-link-animated a {
      pointer-events: none !important
    }

    and put in the options dialog of social profiles the “Social Icon Url”

    in reply to: font weights used by Enfold? #1294327

    you can see here the Enfold Font List on Google
    type in everything you like – maybe a pangram to see all letters.
    on the end of the list you can see a preview – one click on those squares – you come to the site for the single font and on bottom – very nice – popular font pairings.

    in reply to: Detect mobile in PHP? #1294193

    isn’t it possible to use the function layerslider_deactivation_scripts() { for that.
    and use that hook: do_action(‘layerslider_deactivated’);

    sorry my image hoster is temporarly down :
    just before line 834 : require_once( 'functions-enfold.php');

    I can only ever strongly advise using a child theme.
    It has so many advantages that the few disadvantages don’t matter.
    All the nice php/script snippets that go into the child-theme functions.php would have to be placed in the parent-theme functions.php, and then renewed with each new update. Etc. pp.

    the place in the parent-theme functions.php would be here just under that comment before the last line in functions.php ( require-once …)

    you have no link on that animated gif so in Enfold Options you insert only #
    in the quick css rule – you had to adjust the url to your animated gif
    this part from above:

    background: url(/wp-content/uploads/2021/04/arrows.gif) no-repeat center center;
    
    in reply to: Images being duplicated within media library #1294170

    Does the site has WPML plugin installed ? If the answer is yes, please head over to WPML support. The short explanation is that the plugin creates multiple records of one image for use with other language(s) but the image file itself will not be duplicated.
    so have a look if these files are duplicated in your uploads folder via ftp.

    Thanks Ismael – this was a bug info – and not a find a solution topic ;)
    The first solution is acceptable the second one is not so practicable, because you see from the example page, if the “shifted” color-section has a background it becomes problematic.
    I never noticed that, because I used it mostly only when I wanted to move a 1/1 column up – like it is often done in this demo : https://kriesi.at/themes/enfold-church/
    In principle, the question remains whether maintaining the negative margin in the responsive case makes sense at all.

    can be closed

    in reply to: Custom header height distorts logo #1293994

    @DouPaule – natürlich ist es erlaubt.


    @digitalprint2222
    : sollte die Farbe nicht ganz stimmen im svg. Dann kannst du das svg mit einem guten Texteditor der keinen zusätzlichen meta Mist mit in die Datei schreibt öffnen ( Windows: notepad++ ; Mac : Sublimetext )

    Oben in deinem Logo siehst du dann ganz ähnlich wie in einem html code einen style bereich:

    <style type="text/css">
    	.dpg0{fill:#333333;}
    	.dpg1{fill:#F4983B;}
    	.dpg2{fill:#000000;}
    </style>

    die dpg steht für digital print group dpg1 ist das Orange – wenn du hier einen andere Farbe einträgst, das ganze abspeicherst, dann hast du die Veränderung auch schon gemacht.
    PS : was wohl passieren würde wenn da stünde:

    <style type="text/css">
    	.dpg0{fill:#333333;}
    	.dpg1{fill:#F4983B;}
    	svg:hover .dpg1 { fill: #990000;}
    	.dpg2{fill:#000000;}
    </style>

    https://webers-testseite.de/weber/DigitalPrint.svg
    etc. pp

    in reply to: Custom header height distorts logo #1293963

    wenn du das Logo lieber bündig mit der Navigatin haben möchtest:

    #header_main .av-logo-container {
        padding: 0 5px;
    }
    in reply to: Custom header height distorts logo #1293962

    zunächst sollten die ja keine Untermenupunkte haben diese beiden Individual Links. Daher sollten die Pfeile auch nicht da sein.
    Hast du im Menu eventuell die als MegaMenu Punkte gesetzt?
    Standardmäßig sind da bei Enfold keine “Arrows” – also wie hast du Sie eingebunden?
    doch mit dem Pseudocontainer after – also nimm sie dort wieder raus:
    besser hinter der ursprünglichen Anweisung im css platzieren.

    .html_header_top .av_bottom_nav_header #header_main_alternate .main_menu ul:first-child > li.anfrage > a::after,
    .html_header_top .av_bottom_nav_header #header_main_alternate .main_menu ul:first-child > li.telefon > a::after{
        content: "";
    }

    der Unterstrich:

    .anfrage.current-menu-item > a > .avia-menu-fx,
    .telefon.current-menu-item > a > .avia-menu-fx {
        display: none
    }

    es ist bestimmt für deine Konstellation besser, wenn du zunächst mal den Umbruchpunkt wann der Hamburger auftaucht auf die “Mobile/Tablet” Option einstellst: ( Menuelemente für Mobilgeräte )

    wenn das nicht reichen sollte, dann kann man das auch per css beeinflussen.

    in reply to: custom width flex column #1293957

    no private content for me – i’m participant as you are

    ok – i thought it is your website – is there a test site with that?
    your site http://peterloew.eu/ shows me not the equal height option

    in reply to: Custom header height distorts logo #1293885

    Gerne auch via E-Mail wenn du die Seite nicht öffentlich machen möchtest.

    in reply to: Custom header height distorts logo #1293875

    ohne die Seite zu sehen ist es quasi unmöglich dir exakte Tips zu geben.

    in reply to: custom width flex column #1293873

    can you please set the columns now to equal height!
    then it is easier to find the correct selectors for it –
    maybe you give a custom-class to that column – then the selector is more specific.

Viewing 30 posts - 4,531 through 4,560 (of 11,877 total)