Forum Replies Created

Viewing 30 posts - 1,081 through 1,110 (of 11,593 total)
  • Author
    Posts
  • in reply to: header bg in a transparent header #1464022

    or try :
    remove the background-image – and your settings for: #top .av_header_transparency .header_bg

    html.html_header_transparency #top #header:not(.av_header_transparency) .header_bg {
      background-color: rgba(0,0,0,0.7) !important;
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
    }
    
    html.html_header_transparency #top .av_header_transparency .header_bg {
      background-color: rgba(0,0,0,0.4) !important;
      -webkit-backdrop-filter: blur(5px);
      backdrop-filter: blur(5px);
    }

    this is a kind of frosted glas effect – it blurs the background with a given overlay color.

    in reply to: header bg in a transparent header #1464021

    you like to have a transparency header – on scroll the transparency goes to a given background-color.
    the transparency header should have an overlay pattern?

    or do you only like to have f.e. :
    (Remove the pattern image)

    #top .av_header_transparency .header_bg {
      opacity: 0.7;
      filter: alpha(opacity=70);
    }
    
    #top .header_bg {
      -webkit-transition:all 1s ease-in-out;
      transition:all 1s ease-in-out;
      background-color: transparent !important;
    }
    
    #top .av_header_transparency .header_bg {
      background-image:linear-gradient(to top,rgba(0,0,0,0.001) 0%,rgba(0,0,0,1) 70%);
      background-color:transparent !important;
      -webkit-transition:all 1s ease-in-out;
      transition:all 1s ease-in-out
    }
    in reply to: Search Icon on Mobile Flyout Menu problem #1464016

    PS : maybe you give that a chance?
    Test:

    html #top  #menu-item-search a {
      transform: translateX(25px) scale(0.6);
      transform-origin: right;
      width: 85px !important;
    }
    
    html #top  #menu-item-search a {
      border: 1px solid #FFF !important;
      font-size: 40px !important;
      color: #8FCCF7 !important;
      text-align: center !important;
      padding: 0px !important;
      position: relative;
      top:1px;
    }
    
    html.av-burger-overlay-active #top #menu-item-search a {
      position: relative;
      color: #19304D !important;
      background-color: #27868E !important;
      border: 1px solid #e1e1e1 !important;
    }
    
    html #top  #menu-item-search:hover a {
      color: #FFF!important;
      background-color: #237299 !important;
      border: 1px solid #FFF !important;
    }
    
    html.av-burger-overlay-active #top #menu-item-search:hover a {
      color: #333!important;
      background-color: #27868E !important;
    }
    
    #top .avia-search-tooltip .avia-arrow-wrap {
      top: -20px;
      right: 35px;
    }
    
    #top .header_color #menu-item-search .avia-tt {
    	background: #237299 !important;
    }
    
    #top .header_color #menu-item-search  #searchsubmit {
      background-color: #399bcb;
    }
    in reply to: SVG DIVIDERS #1464006

    by the way – with svg patterns you can create from f.e.:
    _____________


    this:

    and use them as dividers.

    look to svg filmstrip code:

    <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg"  x="0px" y="0px" viewBox="0 0 112 200" xml:space="preserve">
    	<path d="M0,0v200h112V0H0z M72.57,157.5H39.43c-11.44,0-20.76-8.92-20.76-20.32V63.18c0-11.4,9.32-20.68,20.76-20.68h33.14
    	c11.44,0,20.76,9.28,20.76,20.68v74.01C93.33,148.57,84.01,157.5,72.57,157.5z"/>
    </svg>

    just get rid of svg tag and put instead the content into a group:

    <g>
    	<path d="M0,0v200h112V0H0z M72.57,157.5H39.43c-11.44,0-20.76-8.92-20.76-20.32v-74c0-11.4,9.32-20.68,20.76-20.68h33.14
    	c11.44,0,20.76,9.28,20.76,20.68v74.01C93.33,148.57,84.01,157.5,72.57,157.5z" />
    </g>

    now create your pattern like this:

    <svg id="pattern" viewBox="0 0 6000 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMin slice">
    	<defs>
    		<pattern id="film_strip" x="0" y="0" width="112" height="200" patternUnits="userSpaceOnUse">
    			<g>
    				<path d="M0,0v200h112V0H0z M72.57,157.5H39.43c-11.44,0-20.76-8.92-20.76-20.32v-74c0-11.4,9.32-20.68,20.76-20.68h33.14
    				c11.44,0,20.76,9.28,20.76,20.68v74.01C93.33,148.57,84.01,157.5,72.57,157.5z" />
    			</g>
    		</pattern>
    	</defs>
    	<rect x="0" y="0" width="100%" height="100%" fill="url(#film_strip)"></rect>
    </svg>

    on the pattern tag – transfer the width/height and x/y values of the origin svg tag to it.
    on the new svg tag viewport is then in height the same as the pattern – but much bigger in width.
    The rect path is now width 100% and filled with the pattern url!

    see: https://webers-testseite.de/divider-on-sliders/

    this procedure is nearby the background-repeat method. because we do not have background images here – instead inline svg.
    The “single SVG path” had to be designed in such a way that they could be joined together seamlessly.

    PPS:
    the preserveAspectRatio defines how the svg reacts on screen-width reduction – play a bit on : Link

    in reply to: SVG DIVIDERS #1464000

    when creating these svgs for the dividers – the opaque area must cover the entire width and be at the top of the svg.
    if you have responsive svgs, then the following should be at the top of the svg tag : preserveAspectRatio="none"

    if you look at the silouette of my home town on my example page, it would be awful if the width remained at 100% but the height could be set variably. in this case i have set: xml:space="preserve" preserveAspectRatio="xMidYMin meet"

    in reply to: SVG DIVIDERS #1463916

    Well, it seems to have been a success.

    in reply to: Single page with different colored header #1463861

    and by colour is meant the background colour of the header – as Mike already suspected?

    you can look what selectors the background-color of the header is for. and change it via that page-id of your single page.

    #top.page-id-46970 .header_color .header_bg {
      background-color: green
    }
    
    #top.page-id-46970 .header_color .container_wrap_meta {
      background-color: green
    }

    ____________________________

    or you can change f.e. the variable that is set by enfold options ( like mike above shows )
    these colors are for header:
    –enfold-header-color-bg
    –enfold-header-color-bg2

    where bg is header background-color – and bg2 is header_meta background-color

    you can change these settings via filter for one single page only by:

    ( because the page / post ID goes to the html as class: html_entry_id_12345 we can use that as selector )

    function my_avf_dynamic_css_after_vars($output = ''){
      $output .= "\n";
      /*** Override a defined var for a specific page id*/
      $output .= "html.html_entry_id_46970  {\n";
      $output .=    "--enfold-header-color-bg: #aaa;\n";
      $output .=    "--enfold-header-color-bg2: #aaa;\n";
      $output .= "}\n";
      return $output;
    }
    add_filter( 'avf_dynamic_css_after_vars', 'my_avf_dynamic_css_after_vars', 10, 1 );

    replace the color #aaa to your wanted values.

    Once the code snippet has been successfully entered, the page/browser caching must be refreshed.

    you find the page-id-xyz or postid-xyz on the body tag. You had to adjust the codes above to your id and wanted colors.

    in reply to: Developer has discovered errors in Enfold #1463860

    ich verstehe nicht was du vor hattest.
    Du nutzt also ein codeblock element um inline css zu platzieren?
    innerhalb des Codeblock Element hast du also dann “add codeblock to content” gewählt,
    den Code im Inhaltsbereich dann mit

    <style>
    .element > .child2 > span { }
    </style>

    dort eingefügt. Das ergab dann nicht das gewünschte css rule?

    _____________

    I don’t understand what you had in mind.
    So you are using a codeblock element to place inline css?
    within the codeblock element you have selected “add codeblock to content”,
    the code in the content area with

    <style>
    .element > .child2 > span { }
    </style>

    This did not lead to the desired css rule?

    __________

    ich habe hier mal eingefügt: https://webers-testseite.de/custom-link-to-lightbox/

    div > .mfp-close {
     background-color: red !important;
    }

    und so wird auch das css erstellt.

    in reply to: SVG DIVIDERS #1463849

    by the way: you can animate your existing wave by:
    but i recommend using my svg files from above – and as custom svg dividers!
    because your replaced the mountains svg by your wave:

    @keyframes move-forever {
      0% {
        transform: translate3d(-100px, 0, 0);
      }
      100% {
        transform: translate3d(100px, 0, 0);
      }
    }
    
    .avia-divider-svg.avia-divider-svg-mountains path:nth-of-type(1) {
      animation: move-forever 15s linear infinite;
    }
    .avia-divider-svg.avia-divider-svg-mountains path:nth-of-type(2) {
      animation: move-forever 25s linear infinite;
    }
    .avia-divider-svg.avia-divider-svg-mountains path:nth-of-type(3) {
      animation: move-forever 5s linear infinite;
    }
    
    in reply to: SVG DIVIDERS #1463846

    on enfold the default place where those svg deviders are saved is:
    /wp-content/uploads/dynamic_avia/avia_custom_shapes

    if you upload those custom dividers to this folder via ftp they are ready to use.
    – they only have to be registered for that :
    (for child-theme functions.php)
    f.e.:

    function custom_avf_custom_svg_shapes( array $custom_shapes ) {
    $custom_shapes = array(
    	'waves-in-motion'	=> array(
    			'key'					=> 'waves-in-motion',
    			'title'					=> __( 'Waves in motion', 'avia_framework' ),
    			'has_flip'    			=> true,
    			'has_width'				=> false,
    	//		'attachment'			=> 16,
    			'filename'				=> 'waves-in-motion'
    						),
    'waves-in-motion-2'	=> array(
    			'key'					=> 'waves-in-motion-2',
    			'title'					=> __( 'Waves in motion 2', 'avia_framework' ),
    			'has_flip'    			=> true,
    			'has_width'				=> false,
    	//		'attachment'			=> 17,
    			'filename'				=> 'waves-in-motion-2'
    			),
    	);
    return $custom_shapes;
    }
    add_filter( 'avf_custom_svg_shapes', 'custom_avf_custom_svg_shapes', 10, 1 );

    download those files from : https://webers-testseite.de/animated-svgs.zip

    Then you can use it like every enfold separator.

    On those animated dividers i recommend using it this way :

    ___________________
    PS : you can upload those svg files via media library – but then you can determine the svgs via its ID’s for the usage
    the ID of each attachment you can find on list view in media library.

    in reply to: SVG DIVIDERS #1463844

    there are different ways to animate an svg – but you had to prepare the svg first.
    my approach on that is to include everything inside the svg itself.

    The basis of the Enfold separators (but Divi, Elementor etc are no different) is to have a cover area within the svg that forms the connection to the next/previous section. This is then filled with #000 by default, and then replaced with a different colour using the element option.

    On your example page, it is set in motion from outside using keyframe animation.

    in reply to: SVG DIVIDERS #1463832

    PS : there are plugins listed as code snippet plugins – f.e.: https://en-gb.wordpress.org/plugins/code-snippets/ – then you can use your parent theme and insert those snippets this way.
    But my recommendation is to use a child-theme.

    in reply to: Search Icon on Mobile Flyout Menu problem #1463830

    PS : did you switch in this moment to hamburger from the beginning – a few minutes ago – there was the normal desktop navigation seen.?

    PPS: i see now the reason – you have a switch rule for 2000px – my recommendation is to only have hamburger for your navigation:
    Enfold Options – Main Menu – Menu Items For Desktop : “Display as Icon”

    and remove then the rules concerning to that switch point.

    After doing this we will see if the problem is solved so far. because your rules do set all menu items to display none – even the #menu-item-search

    in reply to: Search Icon on Mobile Flyout Menu problem #1463829

    May I first say that your main navigation is very confusing; due to a lack of space, a second row is opened – and the contrast is suboptimal if you want it that way;)
    My recommendation for your site would therefore be to always use the hamburger menu – even with large screen widths.

    How would you like the search to be displayed in the burger menu?
    Only as a magnifying glass – or already as an input field?
    See: https://pureinstall.webers-testseite.de/

    Possible to do both (see link)

    make your screen width small to see the hamburger active …

    in reply to: SVG DIVIDERS #1463825

    it is all well documented in the docu. You can download the child at docu too: https://kriesi.at/documentation/enfold/child-theme/
    If you feel unsure about this, please ask a mod to help you.

    Maybe backup your page first – to have a fallback option.
    After that we can start to have our own custom svg shape dividers.

    in reply to: SVG DIVIDERS #1463823

    first: have a look at: https://webers-testseite.de/divider-on-sliders/

    … next – soon

    in reply to: Table sortable header row #1463779

    then I would definitely recommend that no subheadings be accompanied by even the change of column widths.

    in reply to: Table sortable header row #1463771

    OK – but it looks good to me
    What do you like to change on that?

    But apart from that, I think the days of tables are outdated. You can see from the examples of Enfold demos that responsive implementation will always remain problematic. This is always particularly noticeable with large tables like yours. Smaller tables up to 4 columns still work somehow, but after that it only remains clear on large screens.

    On your example page ( https://colorlib.com/etc/tb/Table_Fixed_Header/index.html ) you can see that responsiveness is not implemented at all and that you have to scroll horizontally.

    in reply to: Remove products from search #1463749

    Yes and the snippets above do only allow to show pages and posts ( so if product is not in that array – it will not be shown)
    the first is for having only posts and pages in that ajax search ( that is the menu search icon )
    i can not test it because i got no page at the moment with woocommerce .
    But with Portfolio it works this way.

    in reply to: Remove products from search #1463745

    thanks: didn’t know about that extra filter in portfolio registration

    did you try
    for ajax search ( thats the menu search) :

    function avf_ajax_search_query_mod( $search_parameters ){
      $defaults = array(
        'numberposts' => 5, 
        'post_type' => array( 'page', 'post' ), 
        'post_status' => 'publish', 
        'post_password' => '', 
        'suppress_filters' => false
      );
      $_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s']);
      $search_parameters = array_merge( $defaults, $_REQUEST );
      return $search_parameters;
    }
    add_filter('avf_ajax_search_query', 'avf_ajax_search_query_mod', 10, 1);

    and in addition for search resultspage :

    function post_types_for_search_results($query) {
      if ( !$query->is_admin && $query->is_search) {
        $query->set('post_type', array('page','post') );
        $query->set('post_status', array( 'publish' ) );
      }
      return $query;
    }
    add_filter( 'pre_get_posts', 'post_types_for_search_results' );

    In this case, your code snippet would be unnecessary.
    btw: because of new cpt support in enfold – there is a similar filter for any other cpt: avf_custom_elements_cpt_args – maybe it is possible to use it for specific post-types ( portfolio, product, etc. to have that analog to your code snippet.

    in reply to: theme license says it is expired #1463734

    Where did you try to upload it? it sounds as if someone set the upload_max_filesize to a given value (8388608)
    because 8MB = 8388608 Bytes

    there are different reasons on that. Maybe you hoster ( because your installation is on your local computer this is not the case ) set a value on default to 8MB or some plugins do – or an entry in htaccess file or php.ini etc. etc.

    in reply to: Unload unused CSS/JS automatically #1463732

    here is the code i use for google recaptcha:

    function prohibit_google_recaptcha( $prohibited ){
      global $post;
      if( ! $post instanceof WP_Post ){ return $prohibited; }
      
      $content = Avia_Builder()->get_post_content( $post->ID );
      $prohibited = ( false !== strpos( $content, '[contact-form-7 ' ) || false !== strpos( $content, '[av_contact ' ) ) ? false : true;
      
      return $prohibited;
    }
    add_filter( 'avf_load_google_recaptcha_api_prohibited', 'prohibit_google_recaptcha', 10, 1 );

    so – only if contact-form-7 or enfold contact shortcode is found the recaptcha is loaded.

    in reply to: grid-row full width pictures (no spacing) #1463728

    can you show me your page?

    all images that you have inserted have the same dimension?
    (f.e. by using image-size: portfolio (495×400) )

    in reply to: Unload unused CSS/JS automatically #1463727

    But the idea would be worth considering.
    To see which enfold shortcodes are used on the page and then only load these scripts/styles.
    I don’t know whether there is a performance gain, because this check also takes time.

    In the examples mentioned above, it is not a problem because a contact form only needs its scripts after the form has been filled in. The same applies to a ReCaptcha.

    in reply to: grid-row full width pictures (no spacing) #1463724

    Standard Padding of grid-cells are 30px – so if you do not set it to zero – it will have this 30px padding.
    I guess you are belonging to this?

    in reply to: Remove products from search #1463688

    can you post your code snippet that you used on portfolio?
    a portfolio is nothing else than a custom post type as woocommerce products too.

    i only do know that there is an include snippet – all posttypes that are not listet ( as: product ) are then excluded

    function exclude_from_search($query) {
      if ( !$query->is_admin && $query->is_search) {
         // include the posttype that should be included to search results
        $query->set('post_type', array('page', 'post', 'portfolio') );
      }
      return $query;
    }
    add_filter( 'pre_get_posts', 'exclude_from_search' );

    if you do not like the portfolios – just remove it from array

    btw. the ajax search has its own query ! If you like to influence this too …

    Actually, I’m just surprised that a contributor has this option at all.

    in reply to: Translate Main Logo #1463652

    Yes – and if you use for both logo svg files you can replace it by the ID of that logo file.
    you can find that ID on media library list view! ( it is an own column for that )

    try for default logo:

    function change_logo_on_different_languages($logo){
        $currentlang = get_bloginfo('language');
        if($currentlang == "fr_FR"){
            // see on media library what ID your Logo for Fr site has.
            $logo = 162;  
        }
        return $logo; 
    }
    add_filter('avf_logo','change_logo_on_different_languages');
    

    and for transparency logo:

    function av_change_alternative_logo_img($header){
        $currentlang = get_bloginfo('language');
        if($currentlang == "fr_FR"){
            // next line is only neccessary if on options no default transparency logo has been set
            $header['header_class'] .= ' av_alternate_logo_active'; 
            $header['header_replacement_logo_id'] = 163;
        }
        return $header; 
    }
    add_filter('avf_header_setting_filter','av_change_alternative_logo_img');

    or adjust Ismaels code that way with ID’s

    in reply to: Easy Slider ‘Mouse Hover’ #1463650

    but you read that

    and maybe sitespecifc – to not influence all sliders

    my code above works for that page-id: 12345

    if you use the global code from Ismael every slider ( easy-slider, fullwidth-slider, fullscreen-slider etc. will have that hoverpause.
    That is only the difference.

    in reply to: Table sortable header row #1463629

    send me an email – info under my nick

Viewing 30 posts - 1,081 through 1,110 (of 11,593 total)