Forum Replies Created

Viewing 30 posts - 5,161 through 5,190 (of 11,496 total)
  • Author
    Posts
  • in reply to: How to use a section divider that overlaps #1220508

    Elementor or Divi uses svgs that plays only with opacity and one group color – the group color is then the background-color of the following section:
    something like this:

    <?xml version="1.0" encoding="utf-8"?>
    <svg version="1.1" id="Gebirge" class="bottom" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="300px" x="0px" y="0px" viewBox="0 0 1500 300" preserveAspectRatio="none">
    	<g fill="#900">
    		<path d="M0,100L200,0l735,200l365-15l200-85v200H0V100z" fill-opacity=".5"/>
    		<path d="M0,195l165-60l370,50l400-55l400,95l165-30v105H0V195z" fill-opacity="1"/>
    	</g>
    </svg>

    looks this way

    that red color is then only in opacities present and on the one side it is with opacity:1 to give the border to the next secction.

    in reply to: How to use a section divider that overlaps #1220506

    ok: no – the svg as inline svg in the functions.php. No need to upload!

    you see now on your DOM – and that you can change all fill colors or opacities you like via quick css:

    in reply to: How to use a section divider that overlaps #1220499

    For this way you had to know something about svg ( and how to prepare the svg code for appending / prepending it )
    please give two custom class to the section #start : divider waves
    (You will see later why these classes are useful) – just copy/paste and put this in the custom class field.

    put this to your child-theme functions.php

    function insert_dividers(){
    ?>
    <script>
    (function($){
    	$('.avia-section.divider.waves').append('<svg version="1.1" id="Waves" class="bottom" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1500 200" preserveAspectRatio="none"><style type="text/css">.wav0{fill:#FFFFFF;}.wav1{opacity:0.15;fill:#339996;}.wav2{opacity:0.3;fill:#6FAEB0;}</style><g><path class="wav0" d="M1404.5,15.3c-214.5-23.4-430-20-644.1,10.2l-31.1,4.4C609.1,46.8,488.5,55.2,367.8,55.3h-5.4 C241.5,55.1,120.5,46.4,0,29.3v26v29.3V200h1500V81V55.3V25.7L1404.5,15.3z"/><path class="wav1" d="M739.6,149.7l31.1,3.8c242.7,28.7,486.6,28.5,729.3-0.5v4.8c-242.7,29-486.6,29.1-729.3,0.4l-31.1-3.8 C525.3,129,310,126.2,95.5,145.9L0,154.7v-4.8l95.5-8.7C310.1,121.5,525.3,124.4,739.6,149.7z"/><path class="wav2" d="M760.4,25.5l-31.1,4.4C486.7,63.9,242.6,63.8,0,29.3v55.3c242.6,34.5,486.7,34.6,729.3,0.5l31.1-4.4 c214.2-30.1,429.6-33.5,644.1-10.2L1500,81V25.7l-95.5-10.4C1190-8.1,974.6-4.7,760.4,25.5z"/><path class="wav2" d="M760.4,25.5l-31.1,4.4C486.7,63.9,242.6,63.8,0,29.3V81l95.5-10.4c214.5-23.4,430-20,644.1,10.2l31.1,4.4 c242.6,34.1,486.7,33.9,729.3-0.5v-59l-95.5-10.4C1190-8.1,974.6-4.7,760.4,25.5z"/></g></svg>');
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'insert_dividers');

    and this to your quick css:

    .avia-section.divider {
      position: relative !important;
    }
    
    svg#Waves.bottom {
        position: absolute;
        bottom: -3px !important;
        z-index: 50;
        height: 200px;
        width: 100vw;
    }

    So – for what do we need these classes?
    now every color-section with these classes gets the divider.
    The first is to initialize the svg insertion – the second gives the svg data.
    i have on my installations approx 15 different svg datas. they have all some names like waves, waves2, mountains, clouds etc. pp.
    the second class is for what to insert as a divider.

    I have always a pair for divider top position and bottom position.
    The one are inserted via append (bottom position) the others are inserted via prepend:
    $('.avia-section.divider.waves').prepend('<svg version="1.1" id="Waves" class="top" …

    in reply to: How to use a section divider that overlaps #1220492

    The easier way – but not so mighty as the other possibility.
    Upload to your media library that svg: https://webers-testseite.de/wp-content/uploads/waves.svg

    put in your quick css:

    #start::before {
        content: "";
        background-image: url(/wp-content/uploads/waves.svg); /**** be carefull if you have the installation in a subfolder - maybe better an absolute path ***/
        background-repeat: no-repeat;
        background-size: 100vw 200px;
        background-position: left bottom !important;
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 50;    
    }

    disadvantage of this method: if you now had a following section with a background-color, you could not change the white in svg by css.

    in reply to: How to use a section divider that overlaps #1220435

    now – if you got an example page where you like to insert this – i will show you how to do that. It is easier to have more information about the place where the divider should go to.

    in reply to: How to use a section divider that overlaps #1220431

    on the site you linked to – it is done via insertion of a svg file in a pseudo container ( :before )
    but you have then an img svg ( a background-image : … svg )
    i prefer to have real inline svg on that – because we can do even animated svgs as divider ( see footer ) and you can have fast influence on the background-color of non-transparent part by css with fill color.

    https://webers-testseite.de/pureinstall/fullwidth-slider/

    here is nearly the same svg as on your example page:
    on the most svg-dividers there is allways a transparent side and a side where a background-color is forming the border to the other section.
    https://webers-testseite.de/pureinstall/wp-content/uploads/waves-2.svg
    The gray is just a background for contrast reasons and shows you the transparent part of the svg.
    Look now to your example page: The image on top has the transparent side of the divider.
    the white non-transparent part of the divider goes to the section with white background.

    See here the code for that svg:

    <?xml version="1.0" encoding="utf-8"?>
    <svg id="Waves" data-name="waves" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 106.24" width="100%" height="200px" preserveAspectRatio="none">
    	<style>
    		#Waves{background-color: #aaa}
    		.bottom-bg{fill:#fff;}
    		.color-1{fill:#339996; opacity:0.15;}
    		.color-2{fill:#6faeb0; opacity:0.3;}
    	</style>
    	<title>waves</title>
    	<rect class="bottom-bg" y="29.37" width="1199" height="76.87"/>
    	<path class="color-1" d="M591.67,80.53l24.89,2A3705.31,3705.31,0,0,0,1200,82.26v2.53A3705.31,3705.31,0,0,1,616.56,85l-24.89-2A3704.3,3704.3,0,0,0,76.38,78.51L0,83.16V80.63L76.38,76A3704.3,3704.3,0,0,1,591.67,80.53Z" transform="translate(0 -1)"/>
    	<path class="bottom-bg" d="M607.82,14.52,583,16.85A3116.84,3116.84,0,0,1,0,16.57V45.95a3116.84,3116.84,0,0,0,583,.28l24.87-2.32a3115.7,3115.7,0,0,1,514.86-5.4L1199,44V14.64l-76.32-5.52A3115.7,3115.7,0,0,0,607.82,14.52Z" transform="translate(0 -1)"/>
    	<path class="color-2" d="M608.33,14.52l-24.89,2.32A3122,3122,0,0,1,0,16.57V45.95a3122,3122,0,0,0,583.44.28l24.89-2.32a3120.89,3120.89,0,0,1,515.29-5.4L1200,44V14.64l-76.38-5.52A3120.89,3120.89,0,0,0,608.33,14.52Z" transform="translate(0 -1)"/>
    	<path class="color-2" d="M608.33,14.52l-24.89,2.32A3122,3122,0,0,1,0,16.57V44L76.38,38.5a3120.89,3120.89,0,0,1,515.29,5.4l24.89,2.32A3122,3122,0,0,0,1200,45.95V14.64l-76.38-5.52A3120.89,3120.89,0,0,0,608.33,14.52Z" transform="translate(0 -1)"/>
    </svg>

    it is nearly the same structure as a html page.
    You can have styles in it etc. pp.
    You see the class : bottom-bg if you must have a section following with blue background – just redefine the fill color to blue on quick css – thats all.
    So you can use one svg file to have as divider for different sections.

    in reply to: How to add code for the header, on all pages. #1220408

    You can have a header widget area – or directly insert on that hook f.e. a button-row element.
    See here : https://webers-testseite.de/with-submenu/

    if it fits your needs i tell you how to reach.

    in reply to: How to add code for the header, on all pages. #1220368

    – so after inspecting your post above with developer tools – i found your video – ( the link above is not clickable )
    these three links – are not main-menu links – these are made with content element : fullwidth sub menu
    and as far i can see they are centered allready.

    You main menu is set directly to have as burger menu.

    So now – what would you like to do? place this custom menu inbetween logo and main-menu.

    If this will work – what would you like to do in responsive case with them?

    This is the status quo on iphone:

    And this on ipad

    So what to do on this case?

    you can open the slider in your layout – klick on one slide to open the option for that slide – goto Advanced Tab – there you are.

    on most cases it will be possible to insert those texts or headings in a column. These columns have on their options the opportunity to animate in the same way.
    Advanced Tab on Options : Animation

    in reply to: Remove permanent link from the post h1 title #1220157

    btw: if you have this function on your child-theme functions.php the parent function will not be loaded – because as a pluggble function it looks if it exists etc. pp.

    now if you want to change the heading tag you can now do it directly here :
    $default_heading = is_singular() ? 'h1' : 'h2';
    on blog view the heading tag is set to h2 – on single post it is h1
    change that and you will have the other tags you like.

    on only changing the heading tags we use only that filter : avf_customize_heading_settings
    But since you wanted the changes to that effect, and thus have the function in the Child-Theme, you can also change the Heading-tags here in one go.

    __________
    dear Mods – if there was a more elegant syntax please tell me – i always like to learn something too.

    • This reply was modified 5 years, 1 month ago by Guenni007.
    in reply to: Remove permanent link from the post h1 title #1220155

    It is a littel bit more than only hiding the pointer – the click event is gone. So no mouse-event anymore. But thats why i asked you if you want to completely remove the link setting on this.

    the helper-post-format.php is responsible for that.
    On line 54ff there is the avia_default_title_filter
    And as a pluggable function you can load it in your child-theme functions.php.

    But difficulty on this is that it rules both – the heading (h2) on blog view and the heading (h1) on single-post.
    So we had to have an if clause here too like on the heading tag above.

    put this in your child-theme functions.php

    function avia_default_title_filter($current_post)
    {
    	if(!empty($current_post['title']))
    	{
    		$default_heading = is_singular() ? 'h1' : 'h2';
    		$args = array(
    					'heading'		=> $default_heading,
    					'extra_class'	=> ''
    				);
    		
    		/**
    		 * @since 4.5.5
    		 * @return array
    		 */
    		$args = apply_filters( 'avf_customize_heading_settings', $args, 'avia_default_title_filter', array( $current_post ) );
    		
    		$heading = ! empty( $args['heading'] ) ? $args['heading'] : $default_heading;
    		$css = ! empty( $args['extra_class'] ) ? $args['extra_class'] : '';
    
    		$output  = "";
    		//$output .= "<{$heading} class='post-title entry-title ". avia_offset_class('meta', false). "'>";
    		$output .= "<{$heading} class='post-title entry-title {$css}' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false)).">";
    		$output .= is_singular() ? $current_post['title'] : "<a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".$current_post['title']."'>".$current_post['title'];
    		$output .= "<span class='post-format-icon minor-meta'></span>";
    		$output .= is_singular() ? '' : '</a>';
    		$output .= "</{$heading}>";
    		$current_post['title'] = $output;
    	}
    	return $current_post;
    }

    it now will have the link on blog view but on single post there is only the h1 without link

    • This reply was modified 5 years, 1 month ago by Guenni007.
    in reply to: help! can't edit from front end #1220153

    HI and thank you for the advice & code. I worked out the layout, but don’t understand why I need to put in that css to get it to look like it used to. It’s OK.

    i do not know either – because on default Enfold will reach the framed layout by having 4 containers ( on the bottom of the DOM) to have this outlook:

    On your page this framed Layout is setup in a different way. Or a plugin is disturbing the normal DOM ( i see there is a pum – maybe popupmaker)

    Edit : these Enfold “Frames” are included in the pum-container. Something that should not happen!

    Do you need this pum ( guess it is popup maker ) plugin ?

    in reply to: help! can't edit from front end #1220151

    so you switched now to 990 px responsive break point.
    Then it would be better to only have the upper rule!
    And get rid of the mediaquery for 767px
    leave only this rule in your quick css and delete the other media-query:

    @media only screen and (min-width: 990px) {
     html::before {
      content: '';
      background-color: #4b6969;
      width: 100%;
      position: fixed !important;
      z-index: 5;
      top: 0;
      left: 0;
      height: 15px;
     }
     .html_header_top.html_header_sticky #header {
      width: calc(100% - 30px);
      left: 15px !important;
      top: 15px  
     }
    }

    i don’t see why the padding-top of main is in your code set to a value on responsvie case – but this will correct the issue for it:

    @media only screen and  (max-width: 767px) {
    .html_header_top.html_header_sticky #top #wrap_all #main {
        padding-top: 0 !important;
    }
    }

    for your editing problem a mod should look around in your installation.
    So you might leave an admin login for them in the Private Content field.
    I have no idea what this could be responsible for.

    in reply to: help! can't edit from front end #1220016

    with polylang i could not help you – because i always use WPML for multilanguage Sites. sorry

    in reply to: help! can't edit from front end #1220014

    Goto: Dashboard – Users and choose your profile : on Toolbar there is: “Show Toolbar when viewing site ”
    Sometimes it is necessary to not show – because the Adminbar Height is not included in calculations on the page. f.e. paddiing-top values.
    So on that case you see not what you get as logged out user.

    Furthermore:
    I think it would be better for your menu styling if you have choosen the option on Enfold – Header – Header Behavior : “Let logo and menu position adapt to browser window”

    Then
    Is it the intention that the content is shown above your header?
    Furthermore, is it intended that the header, similar to a banderole, also overlays the green borders left and right?

    Maybe you can try this code and see if it fits better your needs:

    @media only screen and (min-width: 990px)  {
      html::before {
        content: '';
        background-color: #4b6969;
        width: 100%;
        position: fixed !important;
        z-index: 5;
        top: 0;
        left: 0;
        height: 15px;
      }
    
      .html_header_top.html_header_sticky #header {
        width: calc(100% - 30px);
        left: 15px !important;
        top: 15px
      }
    }
    
    @media only screen and (min-width: 768px) and (max-width: 989px) {
      html::before {
        content: '';
        background-color: #4b6969;
        width: 100%;
        position: fixed !important;
        z-index: 5;
        top: 0;
        left: 0;
        height: 30px;
      }
    
      .html_header_top.html_header_sticky #header {
        width: calc(100% - 60px);
        left: 30px !important;
        top: 30px
      }
    }

    Maybe it is best to switch earlier in responsvie mode
    see f.e.: Enfold – Main Menu – General : Menu Items for mobile ( choose 990px) here and lets see whats happening with your menu – if it still overlaps the logo

    • This reply was modified 5 years, 1 month ago by Guenni007.
    in reply to: Remove permanent link from the post h1 title #1220012

    do you want to completely remove those links – or is it enough that there was on mouse ( click) interaction.
    the last is easy to obtain – just in quick css:

    #top.single .post-title.entry-title > a {
        pointer-events: none !important;
    }
    
    #top.single .post-entry .post-title:hover {
      opacity: 1 !important;
    }
    in reply to: Transition speed in slider ALB. #1220011

    by the way : you can delete the
    CUstom Element Options from Guenni007 – https://webers-testseite.de/edited-enfold-alb-elements/
    on Github – after Günter has implemented most of these changes – it is no longer necessary to have these edited ALB Elements. So Page does not exist anymore

    you can do it via quick css:
    go and edit the before pseudo container:
    e.g:

    #scroll-top-link:before {
      content: '';
      width: 100%;
      height: 100%;
      top:0;
      left:0;
      position:absolute;
      background-image: url(/wp-content/uploads/YOUR-ICON.svg);
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center center;
    }

    play with positioning top and left

    in reply to: i want to keep company name next to logo #1219858

    yes – quick css is good place for it – and fast changed.
    Looks nice now! even on Iphone5

    btw: No need to call me sir – El Supremo is quite enough :lol: ;)

    no – i’m just kidding – you are welcome – and i think it is good netiquette and common in communities to be on familiar terms.

    • This reply was modified 5 years, 1 month ago by Guenni007.
    in reply to: Transition speed in slider ALB. #1219725

    Wow !!!

    Thank you very much for this!
    You have to admit that it looks more harmonious already, right?

    in reply to: i want to keep company name next to logo #1219555

    How did you try to implement this code above?
    Do you work with a child-theme ?

    in reply to: SVG for image with hotspots element #1219476

    every svg image is handled in media-library as if it has dimension of 0 x 0 px
    so you had to give an absolute width on that svg to have better browser support:

    e.g.:

    
    img[src*="svg"] {width: 2000px }

    and let the visible width decide the surrounding container.

    If you have inline svg it is similar to that.

    BUT: yes, even if this works the first time you edit it – if you try to edit the image again, the svg will be deleted from the preview.

    • This reply was modified 5 years, 1 month ago by Guenni007.

    It is a pitty that enfold changes it to a parallax container with scroll. because that workaround will do the trick even here.
    On grid-cells you can see that it worked : https://webers-testseite.de/
    those wordpress signs on the left.

    and here on the bottom color-section with background : scroll but with the trick over :before with class : bg-fixed:
    https://webers-testseite.de/background-fixed/

    • This reply was modified 5 years, 1 month ago by Guenni007.

    for mobile there will be nearly no alternative to let them scroll away.
    but some desktop browsers even got troubles with it too: e.g: Safari13

    the background-attachment: fixed runs often not as expected.
    But there is a workaround to fix this:
    https://kriesi.at/support/topic/theme-is-shaking-a-lot-in-safari/#post-1207474

    the trick is not to have that background-attachment:fixed – but a container below ( and the pseudo container : before fits well for that ) that has position:fixed
    : see link above

    by the way if you need more browser support: https://autoprefixer.github.io/

    and use then in the link above better :

    .bg-fixed {
      clip-path: inset(0 0 0 0);
      background-size: 0 !important;
    }
    
    .bg-fixed:before {
      background-image: inherit !important;
      background-repeat: no-repeat;
      content: "";
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background-size: cover;  /*** depends on your wanted settings ***/
      will-change: transform;
    }
    • This reply was modified 5 years, 1 month ago by Guenni007.
    in reply to: child theme download failed #1219418

    Next piece of advice: If you’re planning a major update, I wouldn’t go that way through the dashboard.
    An interrupted update there or an update that runs through but then doesn’t work properly is irreversible.
    My tip: https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107

    On smaller Updates i sometimes use the Plugin: Update Themes and Plugins from zip files

    This littel Tool can make a Database backup and you can roll back if you must do.

    in reply to: child theme download failed #1219414

    There is no need to update a child-theme – The child theme initially consists of three files.
    It can contain more – but does not have to.
    A style.css with the information about the parent theme
    An initially empty functions.php and a thumbnail to have a preview on appearance – themes.


    @mexinsurance
    : he is talking about a child-theme file – not the enfold parent-theme.
    The things you get from themeforest is the parent-theme

    On that you should pay attention what you like to download :
    there is a full-package with psd file , documentation.html etc. pp and enfold.zip ( this complete package has approx: 63MB) and the enfold.zip is part of it and the installable file ( red underlined )

    and there is an installable zip file with only the theme. ( this is the uploadable file and has about 17MB ) ( blue underlined )

    Next: why have you two child-theme images in your themes folder ?

    in reply to: show main menu under slider #1219413

    unter meinem Nick oder Avatar auch , verbirgt sich bei denen die es mit angaben eine HomeUrl – da hast du meine Kontaktdaten.
    Gerne auch per E-Mail – wenns nicht ausufert. ;)

    Ich entferne jetzt mal wieder die Bilder und das Logo – lasse andere Bilder und Text drin.

    OK Now i got it.
    This is only if you are not working with the advanced layout builder ( f.e. on posts ).

    Somehow this makes sense; otherwise you would have the chance to place a 1/1 container in a p-tag which is even in a 1/2 container and so on.

    in reply to: show main menu under slider #1219351

    Lieber Franz – gerne helfe ich weiter, aber du hast offensichtlich noch nicht verstanden, das wir beide nur Teilnehmer hier sind.
    Wenn du die Links nicht veröffentlichen kannst, weil der Kunde das nicht möchte oder du bedenken hast, dann geht es nur über diesen Private Content, dann kann ich dir aber nciht weiterhelfen, denn diese Inhalte sehe ich nicht.
    Sorry – dann musst du auf Moderatoren hier warten.

Viewing 30 posts - 5,161 through 5,190 (of 11,496 total)