Forum Replies Created

Viewing 30 posts - 2,251 through 2,280 (of 11,497 total)
  • Author
    Posts
  • in reply to: Restart animations when back in viewport #1401345

    Yes – some animations – like the reveal animation – create extra child containers – then the target will be different.
    but nevertheless on f.e. simple left to right – it works sometimes – sometimes not – so the code is useless.
    So – a developer had to look for it – if there is a chance to “refresh” those keyframe animations.

    in reply to: Restart animations when back in viewport #1401309

    maybe a mod knows why on some animations the “trick” will not work.
    it sometimes only removes not all classes from all ( each ) observed element.

    function refresh_enfold_keyframe_animations() {
    ?>
    <script type="text/javascript">	
    	const hiddenElements = document.querySelectorAll('.av-animated-generic');
    	const observer = new IntersectionObserver((entries) => {
    	    entries.forEach((entry) => {
    	        if (!entry.isIntersecting) {
    				entry.target.classList.remove('avia_start_animation', 'avia_start_delayed_animation');
    	        }
    	        else {
    	        	return;
    	        }
    	    })
    	})
    	hiddenElements.forEach((element) => observer.observe(element));
    </script>
    <?php
    }
    add_action('wp_footer', 'refresh_enfold_keyframe_animations', 9999);

    see: https://enfold.webers-webdesign.de/category-header/

    But why ?
    this is typographically correct – have a look to a Sentence where all round Letters on the bottom ( o, e, c, etc ) are on the same line like the n, m, z etc.
    This looks horrible. The same here.

    on to it is not even half n-dash it is just nearby the stroke width.

    You can try that yourself
    duplicate your heading and after the line break (br-tag) insert &nbsp; and compare

    or start your second line with an A too! Just to see what happend to second line

    do you really believe that there is a whitespace ?
    This seems to be normal typographic behavior – for example : Carmen Sans ( not the same font but nearby ) – see first two lines without whitespace after break
    and at the end with a whitespace:
    ( i just activated those lines that you can see the alignment better )

    You see that a blank space in typography is a quarter square. ( half n-dash space )
    this is like fonts in that the baseline of curves is always slightly below the straight lines of a font.

    in reply to: Custom Header – Logo center menu left and right #1401225

    here is another way to get it.
    Starting point is – header setting: logo left – menu right !

    the rest with snippet for child-theme functions.php and quick css is all on that page: https://pureinstall.webers-testseite.de/logo-centered/

    that method provides a way to have shrinking header too !

    _________________

    btw. you can do that manually – by inserting the logo as image in your menu ( that is what the script does )
    This can be done by inserting the image src code to the Menu Label. – for better selecting that Menu-Item give a custom class to it ( all can be done in Menu Options )
    The Rest is quick css – like you find it on that page if you break to hamburger on 989px the min-width media querry had to be adjusted to 990px

    in reply to: Use a custom font on one page only #1401200

    try:

    #top .post-entry.post-entry-8977 * {
      font-family: "dkbeuclid", Helvetica, Arial, sans-serif !important;
    }

    the other sections – and footer etc are untouched on that rule – otherwise take #top.page-id-8977

    in reply to: Avia Layout Builder Issue #1401199

    What exactly do you mean by “does not load”
    because i see that you have used color-section, columns etc. pp.

    in reply to: Body CSS greift nicht #1401197

    Die Body Schrift wird im Allgemeinen über die Schriftart, die du in Enfold gewählt hast definiert.
    Die Schrift, die du bei : Allgemeines Styling – Schriften gewählt hast geht als z.B
    body.roboto … in das css child.css ein:

    body.roboto {
      font-family: 'roboto';
    }

    Wenn du es also global ändern möchtest – Dort würde ich es setzen – ohne es mit css zu versuchen.
    ____________________

    Solltest du jetzt auf einer bestimmten Seite nur diese globale Setzung überschreiben wollen, so musst du dort diese Anweisung überschreiben. Also entweder die andere Schrift auf !important dort setzen oder eine höhere Spezfität der Regel haben.
    Wizigerweise würde es denk ich reichen, wenn du statt body #top nimmst also:

    #top.page-id-123.roboto {
      font-family: “gineso-condensed”, sans-serif;
    }

    oder einfacher, weil es wohl ausreicht :

    #top.page-id-123 {
      font-family: “gineso-condensed”, sans-serif;
    }
    in reply to: Restart animations when back in viewport #1401196

    a jQuery Option could be to have intersectionObserver and give to elements that comes into viewport a class – and if they are out remove that class.

    see here f.e. the headings: https://webers-web.info/

    example code could be:

    function observe_headings_on_homepage() {
    ?>
    <script type="text/javascript">	
    	const wrappers = document.querySelectorAll(".av-special-heading")
    	const targets = document.querySelectorAll(".av-special-heading-tag")
    	const animClass = ["in-view"]
    	
    	const observer = new IntersectionObserver((entries, observer) => {
    		entries.forEach(entry => {
    			const currentIndex = Array.from(wrappers).indexOf(entry.target)
    				if (entry.isIntersecting) {	
    					targets[currentIndex].classList.add(animClass);	
    				} 
    				else {
    					targets[currentIndex].classList.remove(animClass);
    				}
    		})
    	}, {
    		root: null,
    		threshold: 0.1,
    		rootMargin: "-120px 0px -100px 0px",
    	});
    
    	wrappers.forEach(wrapper => {
    		observer.observe(wrapper)
    	});	
    	
    </script>
    <?php
    }
    add_action( 'wp_footer', 'observe_headings_on_homepage' );

    for that page above i set then the css in quick css:

    .heading-animation .av-special-heading-tag .heading-wrap,
    #top.privacy-policy .heading-animation .av-special-heading-tag {
        transform: scale(0);
        transform-origin: center center;
        opacity: 0;
        transition: 0.5s all ease;
    }
    
    .heading-animation .av-special-heading-tag.in-view .heading-wrap,
    #top.privacy-policy .heading-animation .av-special-heading-tag.in-view {
        transform: scale(1);
        transform-origin: center center;
        opacity: 1;
        transition: 1s all ease;
    }

    you can do that with columns etc.

    in reply to: Double arrow in Layer Slider #1401143

    i see now – these are script controlled – visiblilty changed to visible for the anchor
    on developer tools it is enough to set for one before or after pseudo-container a display none to remove only one arrow. So a mod had to login and see why there are two arrows controlled by that event.

    First of all, I would turn off the minification to explore it. (wpo-minify…)

    BTW: the fluid font-size calculator here on the page: https://websemantics.uk/tools/fluid-responsive-property-calculator/ is a mighty tool

    And for better browser support – i use the min max option.

    you can see here a test-page made for another participant. This is as ismael recommends a grid row – with special cell behavior inside.:
    https://webers-testseite.de/marcus/
    The trick is the padding-left ( in this case for that participant ) calculation my content on that page is max-width: 1510px ( 50% of it: 755px )

    EDIT: i’m now trying to do the same thing for the right content. …
    AND: if you switch the responsive case at 989 – then you had to adjust the media querries in that css code.

    That you can better see – the alignment line – i set the text-align in the right cell to right.

    in reply to: Add clickable phone number to main menu #1401113

    the simple way : – just insert to your main menu a telephone link – you can have there even images before the label text etc.
    e.g:
    as link: tel:905.639.9972 and f.e. put in as label : [av_font_icon icon='ue854' font='entypo-fontello' size='30px' position='left' color=''][/av_font_icon] Call us
    ______________
    or is it ok for you – if you only have an icon ( telephone ) besides the social media icons?
    create a custom social icon:

    function avia_add_telephone_icon($icons) {
      $icons['tel']  = array( 'font' =>'entypo-fontello', 'icon' => 'ue854');
      return $icons;
    }
    add_filter('avf_default_icons','avia_add_telephone_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_telephone_social_icon($icons) {
      $icons['Tel'] = 'tel';
      return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_telephone_social_icon', 10, 1);

    the new “social media link” will be at the end of the dropdown list in social media symbols enter then your telephone number as link ( tel:905.639.9972 )
    maybe better with your country

    if you like to have it more perfect – you can style it like every other social media link:

    #top #wrap_all .av-social-link-tel:hover a, 
    #top #wrap_all .av-social-link-tel a:focus {
      color: #fff;
      background-color: #37589b;
    }

    etc.

    in reply to: Double arrow in Layer Slider #1401112

    there is a before and an after pseudo container.
    guess it is easier to remove the before:

    first try without important setting:

    #top .avia-layerslider .ls-nav-next:before,
    #top .avia-layerslider .ls-nav-prev:before {
        content: '';
        display: none;
    }

    but I can’t imagine this is a default setting from the layerslider; you’ll have accidentally set something yourself.

    in reply to: Links in text other style for fonts #1400951

    PS : lass dir mal von einem Mod helfen – mittles z.B. better search and replace – deine Datenbank nur noch https zu laden.
    Du hast ne menge gemischte Inhalte , was dazu führt, dass du oben nicht mehr als sichere Webseite eingestuft wirst.

    hauptsächlich betrifft das deine Schriftarten, die du selbst hostest.

    in reply to: Links in text other style for fonts #1400948

    you can manage that via the attribute selector
    f.e.:

    #top a[href*="linkedin"] {
      color: red;
      font-style: italic;
      font-weight: bold;
      text-decoration: none;
    }

    can you try this :

    @media only screen and (max-width: 767px) {
      .responsive .logo img,
      .responsive .logo svg {
        max-height: 120px;
        top: 5px;
        left: 50%;
        transform: translateX(-50%)
      }
      .responsive #top #wrap_all .main_menu {
        height: 120px !important;
        right: -20px;
        left: auto;
      }
      .responsive #top .logo{
        max-height: 120px;
        width: 100%;
      }
      .responsive #top #main {
        padding-top: 0px !important;
      }
      .responsive.html_top_nav_header .av-logo-container {
        height: 120px !important;
      }
    }
    in reply to: Widget Menü Text Ausrichtung oben #1400833

    ja – aber schau dir bitte auch den responsive case an – oder willst du dieses Layout beibehalten:

    deshalb der andere code.

    in reply to: Size sidebar 10% #1400827

    aha – this is a possiblility to change the options tab via child-theme:
    ( sometimes the settings had to fit with preset css ( layout.css , grid.css )) – and so maybe for the setting there is no correspondence to find )
    but in this case it seems to be only that css setting above – that is influenced by this options tab.

    put this to your child-theme functions.php:

    function my_avf_option_page_data_change_elements( array $avia_elements = array() ){
      $slug = "layout";
      $id   = 'content_width';
      $index = -1;
      /** Find index of element to change*/
      foreach( $avia_elements as $key => $element ){
        if( isset( $element['id'] ) &&  ( $element['id'] == $id ) && isset( $element['slug'] ) && ( $element['slug'] == $slug ) ){
          $index = $key;
          break;
        }
      }
      
      /** * If key not found, return unmodified array*/
      if( $index < 0 ){ return $avia_elements;}
      
      /*** Make your customizations*/ 
      $avia_elements[ $index ]['subtype'] = array(
    								'90% | 10%' => '90',
    								'89% | 11%' => '89',
    								'88% | 12%' => '88',
    								'87% | 13%' => '87',
    								'86% | 14%' => '86',
    								'85% | 15%' => '85',
    								'84% | 16%' => '84',
    								'83% | 17%' => '83',
    								'82% | 18%' => '82',
    								'81% | 19%' => '81',
    
    								'80% | 20%' => '80',
    								'79% | 21%' => '79',
    								'78% | 22%' => '78',
    								'77% | 23%' => '77',
    								'76% | 24%' => '76',
    								'75% | 25%' => '75',
    								'74% | 26%' => '74',
    								'73% | 27%' => '73',
    								'72% | 28%' => '72',
    								'71% | 29%' => '71',
    
    								'70% | 30%' => '70',
    								'69% | 31%' => '69',
    								'68% | 32%' => '68',
    								'67% | 33%' => '67',
    								'66% | 34%' => '66',
    								'65% | 35%' => '65',
    								'64% | 36%' => '64',
    								'63% | 37%' => '63',
    								'62% | 38%' => '62',
    								'61% | 39%' => '61',
    
    								'60% | 40%' => '60',
    								'59% | 41%' => '59',
    								'58% | 42%' => '58',
    								'57% | 43%' => '57',
    								'56% | 44%' => '56',
    								'55% | 45%' => '55',
    								'54% | 46%' => '54',
    								'53% | 47%' => '53',
    								'52% | 48%' => '52',
    								'51% | 49%' => '51',
    								'50% | 50%' => '50'
    							);
      return $avia_elements;
    }
    add_filter( 'avf_option_page_data_init', 'my_avf_option_page_data_change_elements', 10, 1 );

    i used it once in a similar way for footer_columns.

    • This reply was modified 2 years, 4 months ago by Guenni007.
    in reply to: Size sidebar 10% #1400817

    don’t know if there is a way to have f.e. a child-them influence of the array on content_width
    f.e. by use of the filter : avia_layout_filter

    – but try first the quick css setting:

    @media only screen and (min-width: 768px) {
      #top .container .av-content-small {
        width:90%;
      }
    }

    but I can’t actually imagine that this can look good at 800px wide, for example.

    in reply to: Double menu #1400687

    i don’t know if there is an easy way to add mega-menu functionality to sub-menu but:

    i would not use the submenu on that – but header layout : logo left – menu below – so you can use all features of main menu.
    and to get the top right menu – use a header widget area. And place a navigation menu widget in it.

    in reply to: Widget Menü Text Ausrichtung oben #1400685

    maybe you decide to show the list in responsive case this way:

    @media only screen and (max-width:767px) {
      #top .widget_nav_menu ul {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-items:  baseline;
      }
      
      #top .widget_nav_menu ul > li {
        padding: 0 5px !important
      }
    
      #top .content .flex_column .widget_nav_menu li:first-child {
        border-top-width: 0px !important; 
      }
    
      #top .sidebar_left .widget_nav_menu ul:first-child > .current-menu-ancestor, 
      #top .sidebar_left .widget_nav_menu ul:first-child > .current-menu-item, 
      #top .sidebar_left .widget_nav_menu ul:first-child > .current_page_item {
        top: 0px !important; 
      }
    }

    if you must have this more specific to that list – give a custom class to it and edit the code above.

    in reply to: Widget Menü Text Ausrichtung oben #1400679

    the ul list items got a padding: .8em 3px

    but before we change that value or shift the ul up – it is easier if you go to the right column with the slider – edit that column and give a padding top to that column of about 18px

    in reply to: Custum code in functions.php #1400676

    or :
    ;)

    function clicky_analytics_header(){
    ?>
    	<script type="text/javascript" src="//static.getclicky.com/xxxxxxxx.js"></script>
    <?php
    }
    add_action('wp_head', 'clicky_analytics_header');
    in reply to: ICONLIST – different layout for smartphone #1400675

    well then, piece by piece – again, it’s better to remove all the code I gave you and replace it with this one:

    @media only screen and (max-width:767px) {
      .avia-icon-list.av-iconlist-big .iconlist_icon {
        float:none;
        margin: 0 0 25px;
        position: relative;
        left: 50%;
        transform: translateX(-50%) !important;
      }
      .avia-icon-list.av-iconlist-big .entry-content-header {
        text-align : center !important;
      }
      .avia-icon-list.av-iconlist-big .iconlist_content  {
        text-align: left !important
      }
      .avia-icon-list.av-iconlist-big .iconlist-timeline {
        display: none
      }
    }

    but in this case i would like to inspect your live page to see what is causing it.
    if you could not post your page link here – send me an e-mail – or wait till mods are here.
    on my testpage this is not the way you described it. see H2O and ® in the menu. https://webers-testseite.de/

    in reply to: subheading added to magazine #1400646

    thanks

    in reply to: ICONLIST – different layout for smartphone #1400645

    Yes – remove the whole code and replace with:

    @media only screen and (max-width:989px) {
      .avia-icon-list.av-iconlist-big .iconlist_icon {
        float:none;
        margin: 0 0 25px;
        position: relative;
        left: 50%;
        transform: translateX(-50%) !important;
      }
    
      .avia-icon-list.av-iconlist-big .iconlist-timeline {
        display:none
      }
    
      .avia-icon-list.avia-icon-list-right.av-iconlist-big .article-icon-entry * {
        text-align:left !important
      }
    }

    on that page you do not use icon on the right side – but if – this will be there too.

    PS: i see your columns break at 767px so if you change the media-query to 767px instead of 989px it will be synchronised with your columns

Viewing 30 posts - 2,251 through 2,280 (of 11,497 total)