Forum Replies Created

Viewing 30 posts - 5,641 through 5,670 (of 11,983 total)
  • Author
    Posts
  • in reply to: Changing h3 html tags in enfold child #1220857

    i guess you can follow this answer here:
    https://kriesi.at/support/topic/change-h3-tags-in-footer-widget-child-theme-of-enfold/#post-727939 and from Yigit here:
    https://kriesi.at/support/topic/change-h3-tags-in-footer-widget-child-theme-of-enfold/#post-728320

    On register-widget-area.php you find the names and ID’s of the widget areas. I cannot see a Forum Widget Area – but you will know that on your installation. ( i let it on section instead of your div – then all would be the same syntax – if you like change section to div)
    The normal blog widget is called: Sidebar Blog with id: av_blog
    for child-theme functions.php:

    function ava_remove_some_widgets(){
    	unregister_sidebar( 'av_forum' );
    
    	register_sidebar(array(
    		'name' => 'Forum',
    		'before_widget' => '<section id="%1$s" class="widget clearfix %2$s">',
    		'after_widget' => '<span class="seperator extralight-border"></span></section>',
    		'before_title' => '<h4 class="widgettitle">',
    		'after_title' => '</h4>',
    		'id'=>'av_forum'
    	));
    }
    add_action( 'widgets_init', 'ava_remove_some_widgets', 11 );

    For the font size change, couldn’t find the relevant CSS selectors either.

    For advice, I would have to see the page it concerns.

    _____________________
    Off Topic
    as long as the headings should be all the same tag i would take this code instead of Yigits – a little bit shorter:
    for child-theme functions.php:

    function register_custom_footer_widget(){   
        $footer_columns = avia_get_option( 'footer_columns', '5' );
        for ($i = 1; $i <= $footer_columns; $i++){
        unregister_sidebar( 'av_footer_'.$i );
    
        register_sidebar(array(
          'name' => 'Footer - column'.$i,
          'before_widget' => '<section id="%1$s" class="widget clearfix %2$s">', 
          'after_widget' => '<span class="seperator extralight-border"></span></section>', 
          'before_title' => '<h5 class="widgettitle">', 
          'after_title' => '</h5>', 
          'id'=>'av_footer_'.$i
        ));
      } 
    }
    add_action( 'widgets_init', 'register_custom_footer_widget', 11 );

    the logo formerly cries for a svg usage.
    Off topic : “The logo almost screams for a svg conversion” : A friend who reads with us laughed his head off. Sometimes I’m just looking for the right words. It’s been a long time – the English I learned at school. – His respect for rules always made him popular with teachers :lol

    The font is : All Round Gothic Bold from Dharma.
    you can download it here as svg Download with font changed to compound path ( on copyright reasons)

    have a look here on that page – what happens to the header background and menu color on scrolling down.
    https://webers-testseite.de/datenschutzerklaerung/

    you can see here an inline-svg logo : this is only one logo for both. : https://webers-testseite.de/plse/
    but i can fill the path and outlines on f.e. header-scrolled.

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

    yes loop-index.php is to edit. But i guess you would need to have a whole child-theme file for that. It is not as simple as on the title link.

    there are a lot of styling possibilities on the blog post ( elegant, business, modern-business ) and blog-layouts and image dimension options – so no way to do it only with one function.

    there are sometimes links on an icon : line253 with class: post-author-format-type this link should also be canceled?

    this is so far my effort – but without removing that link above.
    See here: https://pastebin.com/nbD71qZi
    Download here: Link

    This icon is not allways present – but on modern-business it is.
    And on blog-view there is the author link. : https://webers-testseite.de/pureinstall/category/allgemein/

    Child-theme loop-index.php : download the above and create the same folder tree structure as in parent theme
    means: create an includes folder in child-theme and put the loop-index.php into it.

    Try – and tell me if it works for you.

    the link from the featured post image on blog view or on single post – or both
    here is a very similar post – and my solution to remove only on single post the link ( which is in my opinion too not needed ) :
    https://kriesi.at/support/topic/remove-permanent-link-from-the-post-h1-title/
    i guess the loop-index.php is the first port of call

    in reply to: Icon grid flip boxes #1220754

    ok – if even the link to that page is not public then you had to wait.

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

    What i see is – even if you got it working on the frontend – it is a problem in the backend still.
    It works with my code above once – you see the picture in the preview and can place the hotspots. You can also save it and as said before in the frontend everything will be fine.
    But editing the element again makes the picture disappear. You have to set it again to be able to work on it again. – So this is a bug indeed.

    My advice concerning to svg is to install that little plugin svg support.

    now to your css problematic. You have to set a width to the img itself – but if you gave a custom-class to an image alb f.e. the custom-class is at one “grand” parent container: avia-image-container
    so in this case the selector will be: .avia-image-container.svg-img-test img
    on you last trial this was right – so better to see your page to look for the right selector

    ______

    I would like. to use an SVG in an Image with Hotspots element if possible.

    but that means : you like to have a svg img as the base of the hotspot image – or do you want a svg in the hotspot itself?

    • This reply was modified 5 years, 8 months ago by Guenni007.
    in reply to: Icon grid flip boxes #1220543

    But best would be to have the link to that page.

    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, 8 months 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, 8 months 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, 8 months 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, 8 months 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, 8 months ago by Guenni007.
Viewing 30 posts - 5,641 through 5,670 (of 11,983 total)