Forum Replies Created

Viewing 30 posts - 5,821 through 5,850 (of 11,489 total)
  • Author
    Posts
  • in reply to: How do i create Block with these squares #1159564

    This is part of a demo site!

    • activate the Debug Mode in Enfold by adding this to your child-theme functions.php

    // Debug Modus Enfold
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug(){
      return "debug";
    }

    • Create a new page on your enfold installation – don’t forget to name it
    Enable the Advanced Layerslider Editor ( now you can see under the layout input area another one which shows you all the enfold shortcodes generated by the ALB Elements you pull into the avia layout builder – publish that page ( this is now an empty page generated with alb )

    • now find the shortcode of that demo page
    – so all demo import options can be found at : enfold – includes – admin – demo_files
    look on the demo page to get the name of the demo and look what the page is ( in your case: knowledgebase and the page is the home page.

    open that knowledgebase.xml with a good texteditor ( f.e. : sublime text on mac (or bbedit) – notepad++ for windows )
    find : <title>Home</title>
    the enfold shortcode of that page is sourrounded by:
    <content:encoded><![CDATA[ here is the enfold shortcode ]]></content:encoded>

    i shorten it to the element you like to have with a color-section above that you can see the negative margin
    copy that code inbetween :

    [av_section min_height='75' min_height_pc='25' min_height_px='500px' padding='default' shadow='no-shadow' bottom_border='border-extra-diagonal' bottom_border_diagonal_color='#ffffff' bottom_border_diagonal_direction='border-extra-diagonal-inverse' bottom_border_style='' custom_margin='0px' custom_margin_sync='true' custom_arrow_bg='' color='main_color' background='bg_gradient' custom_bg='' background_gradient_color1='#009efd' background_gradient_color2='#2af598' background_gradient_direction='diagonal_bt' src='https://kriesi.at/themes/enfold-knowledgebase/wp-content/uploads/sites/80/2018/10/hero-bg.png' attachment='221' attachment_size='full' attach='scroll' position='center center' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' id='search_section' custom_class='' aria_label='' av_element_hidden_in_editor='0' av_uid='av-jgasyq2w']
    [av_heading heading='Customer Support
    <strong>& Knowledge Base</strong>' tag='h1' link_apply='' link='manually,http://' link_target='' style='blockquote modern-quote' size='42' subheading_active='' subheading_size='14' margin='' padding='0' color='custom-color-heading' custom_font='#ffffff' custom_class='' id='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-innvjb'][/av_heading]
    [/av_section]
    
    [av_section min_height='' min_height_px='500px' padding='default' shadow='no-border-styling' bottom_border='border-extra-diagonal' bottom_border_diagonal_color='#ffffff' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='frontpage_grid' color='main_color' background='bg_color' custom_bg='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av_element_hidden_in_editor='0' av_uid='av-jgatvii1' custom_class='']
    [av_one_third first min_height='av-equal-height-column' vertical_alignment='av-align-top' space='no_margin' custom_margin='aviaTBcustom_margin' margin='-300px,0' row_boxshadow_color='' row_boxshadow_width='10' link='category,16' linktarget='' link_hover='opacity80' padding='80px,10px,80px,10px' highlight_size='1.1' border='1' border_color='rgba(230,234,236,0.5)' radius='0px' radius_sync='true' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='rgba(255,255,255,0.95)' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_position='top left' background_repeat='no-repeat' animation='' mobile_breaking='' mobile_display='' av_uid='av-45nqm' custom_class='']
    
    [av_font_icon icon='ue832' font='enfold-knowledgebase' style='' caption='' link='' linktarget='' size='40px' position='center' color='#79c8f8' av_uid='av-jfdzoxcx' custom_class='' admin_preview_bg=''][/av_font_icon]
    
    [av_hr class='invisible' height='10' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-vsj2' admin_preview_bg='']
    
    [av_heading heading='Guides' tag='h3' link_apply='' link='' link_target='' style='blockquote modern-quote modern-centered' size='27' subheading_active='' subheading_size='15' margin='' padding='5' color='custom-color-heading' custom_font='#4d6877' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-6bvdunb'][/av_heading]
    
    [av_textblock size='' font_color='' color='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-jfe0fj83' custom_class='' admin_preview_bg='']
    <p style="text-align: center;">Tutorials for using the theme,
    building content and
    everything else!</p>
    [/av_textblock]
    
    [/av_one_third][av_one_third min_height='' vertical_alignment='av-align-top' space='' margin='0px' margin_sync='true' row_boxshadow_color='' row_boxshadow_width='10' link='page,647' linktarget='' link_hover='opacity80' padding='80px,10px,80px,10px' highlight_size='1.1' border='1' border_color='rgba(230,234,236,0.5)' radius='0px' radius_sync='true' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='rgba(255,255,255,0.95)' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_position='top left' background_repeat='no-repeat' animation='' mobile_breaking='' mobile_display='' av_uid='av-aage' custom_class='']
    
    [av_font_icon icon='ue825' font='enfold-knowledgebase' style='' caption='' link='' linktarget='' size='40px' position='center' color='#79c8f8' av_uid='av-jfdzoxcx' custom_class='' admin_preview_bg=''][/av_font_icon]
    
    [av_hr class='invisible' height='10' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-vsj2' admin_preview_bg='']
    
    [av_heading heading='FAQ' tag='h3' link_apply='' link='' link_target='' style='blockquote modern-quote modern-centered' size='27' subheading_active='' subheading_size='15' margin='' padding='10' color='custom-color-heading' custom_font='#4d6877' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-5mz86w7'][/av_heading]
    
    [av_textblock size='' font_color='' color='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-jfe0gaz0' custom_class='' admin_preview_bg='']
    <p style="text-align: center;">Frequently Asked Questions
    and beginners hurdles</p>
    [/av_textblock]
    
    [/av_one_third][av_one_third min_height='' vertical_alignment='av-align-top' space='' margin='0px' margin_sync='true' row_boxshadow_color='' row_boxshadow_width='10' link='page,707' linktarget='' link_hover='opacity80' padding='80px,10px,80px,10px' highlight_size='1.1' border='1' border_color='rgba(230,234,236,0.5)' radius='0px' radius_sync='true' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='rgba(255,255,255,0.95)' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_position='top left' background_repeat='no-repeat' animation='' mobile_breaking='' mobile_display='' av_uid='av-52c6' custom_class='']
    
    [av_font_icon icon='ue82f' font='enfold-knowledgebase' style='' caption='' link='' linktarget='' size='40px' position='center' color='#79c8f8' av_uid='av-jfdzoxcx' custom_class='' admin_preview_bg=''][/av_font_icon]
    
    [av_hr class='invisible' height='10' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-vsj2' admin_preview_bg='']
    
    [av_heading heading='Community' tag='h3' link_apply='' link='' link_target='' style='blockquote modern-quote modern-centered' size='27' subheading_active='' subheading_size='15' margin='' padding='10' color='custom-color-heading' custom_font='#4d6877' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-5hau2x3'][/av_heading]
    
    [av_textblock size='' font_color='' color='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-jfe0gsih' custom_class='' admin_preview_bg='']
    <p style="text-align: center;">Our every growing community
    where you will meet
    other awesome users</p>
    [/av_textblock]
    
    [/av_one_third][av_one_third first min_height='av-equal-height-column' vertical_alignment='av-align-top' space='no_margin' margin='0px' margin_sync='true' row_boxshadow_color='' row_boxshadow_width='10' link='category,15' linktarget='' link_hover='opacity80' padding='80px,10px,80px,10px' highlight_size='1.1' border='1' border_color='rgba(230,234,236,0.5)' radius='0px' radius_sync='true' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='rgba(255,255,255,0.95)' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_position='top left' background_repeat='no-repeat' animation='' mobile_breaking='' mobile_display='' av_uid='av-45nqm' custom_class='']
    
    [av_font_icon icon='ue820' font='enfold-knowledgebase' style='' caption='' link='' linktarget='' size='40px' position='center' color='#79c8f8' av_uid='av-jfdzoxcx' custom_class='' admin_preview_bg=''][/av_font_icon]
    
    [av_hr class='invisible' height='10' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-vsj2' admin_preview_bg='']
    
    [av_heading heading='Getting Started' tag='h3' link_apply='' link='' link_target='' style='blockquote modern-quote modern-centered' size='27' subheading_active='' subheading_size='15' margin='' padding='10' color='custom-color-heading' custom_font='#4d6877' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-4o861fr'][/av_heading]
    
    [av_textblock size='' font_color='' color='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-jfe0ha0h' custom_class='' admin_preview_bg='']
    <p style="text-align: center;">If you are new to Enfold,
    start here with
    easy to follow tutorials</p>
    [/av_textblock]
    
    [/av_one_third][av_one_third min_height='av-equal-height-column' vertical_alignment='av-align-middle' space='no_margin' margin='0px' margin_sync='true' row_boxshadow_color='' row_boxshadow_width='10' link='page,707' linktarget='' link_hover='opacity80' padding='80px,10px,80px,10px' highlight='aviaTBhighlight' highlight_size='1.1' border='' border_color='rgba(230,234,236,0.5)' radius='0px' radius_sync='true' column_boxshadow_color='' column_boxshadow_width='10' background='bg_gradient' background_color='rgba(255,255,255,0.95)' background_gradient_color1='#2af598' background_gradient_color2='#009efd' background_gradient_direction='diagonal_tb' src='' attachment='' attachment_size='' background_position='top left' background_repeat='no-repeat' animation='' mobile_breaking='' mobile_display='' av_uid='av-45nqm' custom_class='']
    
    [av_font_icon icon='ue81c' font='enfold-knowledgebase' style='' caption='' link='' linktarget='' size='40px' position='center' color='#ffffff' av_uid='av-jfdzoxcx' custom_class='' admin_preview_bg=''][/av_font_icon]
    
    [av_hr class='invisible' height='10' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-vsj2' admin_preview_bg='']
    
    [av_heading heading='Submit a Request' tag='h3' link_apply='' link='' link_target='' style='blockquote modern-quote modern-centered' size='27' subheading_active='' subheading_size='15' margin='' padding='10' color='custom-color-heading' custom_font='#ffffff' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-4inadxj'][/av_heading]
    
    [av_textblock size='' font_color='custom' color='#ffffff' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-jfe0hwwx' custom_class='' admin_preview_bg='']
    <p style="text-align: center;">For any other questions
    and specific issues.</p>
    [/av_textblock]
    
    [/av_one_third][av_one_third min_height='av-equal-height-column' vertical_alignment='av-align-middle' space='no_margin' margin='0px' margin_sync='true' row_boxshadow_color='' row_boxshadow_width='10' link='category,14' linktarget='' link_hover='opacity80' padding='80px,10px,80px,10px' highlight_size='1.1' border='1' border_color='rgba(230,234,236,0.5)' radius='0px' radius_sync='true' column_boxshadow_color='' column_boxshadow_width='10' background='bg_color' background_color='rgba(255,255,255,0.95)' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_position='top left' background_repeat='no-repeat' animation='' mobile_breaking='' mobile_display='' av_uid='av-45nqm' custom_class='']
    
    [av_font_icon icon='ue80a' font='enfold-knowledgebase' style='' caption='' link='' linktarget='' size='40px' position='center' color='#79c8f8' av_uid='av-jfdzoxcx' custom_class='' admin_preview_bg=''][/av_font_icon]
    
    [av_hr class='invisible' height='10' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-vsj2' admin_preview_bg='']
    
    [av_heading heading='Downloads' tag='h3' link_apply='' link='' link_target='' style='blockquote modern-quote modern-centered' size='27' subheading_active='' subheading_size='15' margin='' padding='10' color='custom-color-heading' custom_font='#4d6877' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-445mdon'][/av_heading]
    
    [av_textblock size='' font_color='' color='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-jfe0hwwx' custom_class='' admin_preview_bg='']
    <p style="text-align: center;">The official Child Theme
    for Enfold, Plugins and
    useful Code Snippets</p>
    [/av_textblock]
    
    [/av_one_third]
    [/av_section]
    
    

    that copied content you can insert into that input area below the layout builder:

    publish then (update)
    • now you see the layout builder element on top in that layout field.
    • get rid of the stuff you don’t like to have
    (• if you are familiar with the enfold shorcodes you can pick out only the parts you like to have before copying)

    by the way – this is not a flip grid element – it is a color-section with 1/3 columns in it (equal height) and no space between columns:
    the first one of them (guides) has set a negative margin of -300px

    über die lage des eingesetzten divs bin ich mir bei deinem Text nicht ganz klar wie du merkst.
    Wo genau soll es denn nun hin? Oberhalb des Headers ? unterhalb der Navigation ? Eventuell gibst du mal den Link zur Seite raus.

    Je nachdem wohin damit könnte man auch einen hook verwenden. (ohne do_shortcode)

    Bist du vertraut mit dem Child-theme umgang?

    man kann auch html code direkt mit jQuery in ein Element als erstes Kind setzen . ( prepend )
    Eine gute Stelle für dein Unterfangen wäre sicherlich als erstes Kind innerhalb von #main
    das Styling könnte man auch über quick css machen – man kann es aber auch sofort im script setzen.

    wichtig für das responsive Verhalten ist die Kenntnis über das Seitenverhältnis deines Bildes.
    wir setzen die Breite des eingefügten Containers auf volle Screenweite : 100vw
    und die Höhe dann entsprechend der Bildseitenverhältnisse auf zB 50vw wenn das Verhältnis 2:1 ist

    Dies kommt in die Child-Theme functions.php:

    function insert_as_first_child_in_main() { 
    ?>
    <script>
    (function($){
    	$( '#main' ).prepend('<div class="after-header"></div>');
    	$('.after-header').css({
    	"background": "url(url-to-your-image.jpg)",
    	    "background-size": "cover",
    	    "background-repeat": "no-repeat",
    	    "width": "100vw",
    	    "height": "35vw",
    	})
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'insert_as_first_child_in_main');

    PS : bei transparentem Header ist es dann natürlich auch unterhalb des headers ( wie das eben mit #main auch vorher war )

    in reply to: remove logo but keep transprency logo #1159391

    by the way if – you haven’t a shrinking header we could have set it to shrink but without shrinking amount ;)
    that will be the next step

    in reply to: remove logo but keep transprency logo #1159389

    the transparency logo is something different and would not work the way you like to have; because the transparency logo only is in place when the header is transparent. The transparency header is only there if the page isn’t scrolled – so viceversa you like to have.

    Frist Question : has your site a shrinking header? – because if so you can use the classes that toggles on header by scrolling.
    f.e. use the header-scrolled class for that

    #header:not(.header-scrolled) .logo {
      opacity: 0;
    }

    if you use for that the opacity option you can have a smooth goaway of your logo by heaving transition timing
    may i see your site please

    in reply to: WP Night Mode #1159338

    With a WordPress theme that lives from the variety of design possibilities, however, it will always be accompanied by a large share of personal contribution.
    If you have a fixed color scheme, it is easy to define a different color scheme as “Night Mode”.
    But since everyone here in Enfold can create different color themes, it’s not as easy as it seems to be.
    So my idea would be to add more settings for a darkmode ( so to speak a second general styling tab for dark mode) similar to the already existing color settings in Enfold, and then fade in a switch on the pages if needed.

    by the way we had this discussion already : https://kriesi.at/support/topic/dark-mode-2/#post-1142042

    these Night Modes more or less uses the mix-blend -mode and that is something not supported from all Browser: Link

    See here some infos to the script : https://darkmodejs.learn.uno/

    you mean this:

    and that should be under each post ( or portfolio too?)

    maybe you can use that filter here : avf_template_builder_content
    but it does only work if your single posts are made with advanced layout builder.

    it is used this way:

    add_filter('avf_template_builder_content', 'avf_template_builder_content_mod', 10, 1);
    function avf_template_builder_content_mod($content = "")
    {
      if(is_single() || is_singular('portfolio') ) {
        $addendum = do_shortcode(" enfold shortcode place it here between ");
        $content = $content . $addendum ;
      }
      return $content;
    }

    you have to be carefull with the shortcode insertion – because this have to be a oneliner and inline styles are complicated to have – besides that you can not use fullwidth containers as color-sections or grid-rows – because otherwise the sidebar goes down under this.
    how to get from enfold the enfold shortcode is known ?

    in reply to: Site is down because of Enfold Theme #1158434

    but you are running an actual php version on your hoster ( php 7.x ff.) ?
    Because newer Enfold i think – needs newer php Versions – not php 5.x

    in reply to: copyright information on each photo #1158433

    but it should be the copyright info you inserted on media library? – and this should only be there on info reasons? – not as a watermark to prevent download and unwanted usage?

    in reply to: copyright information on each photo #1158419

    on background-images ( set by enfold as section-backgrounds?) – or defined by css as background?
    where should the copyright info be displayed on galleries? – in lightbox besides the title – or where?

    in reply to: set image alt tag and title in image media element #1158310

    well, that’s just two pairs of shoes.
    We got now the possibilitiy to have on image alb a unique alt- and title-attribute. But demanding it for galleries is just something else. At ;) Divi it goes. So I think you should pull right away, but in the unmistakable way Enfold does – easier and more intuitive.

    in reply to: Add logo to hamburger menu #1158088

    Goto the menu settings dialog

    • add to your main menu two home links
    • open the top one of them to see the menu-item settings by clicking on that little arrow on the right of the menu list point
    • you can now enter on navigation label an img src html like:
      <img class="avia_image" src="/wp-content/uploads/logo.png" alt="logo" title="maybe your Domainname" />
    • if you can not see in that menu item settings dialog the classes – you had to open on top of your window that flyout “Screen Options” and mark the needed fields
    • that menu item gets now a meanigfull name f.e.: only-burger
    • just a bit in quick css:
      #avia-menu .only-burger.menu-item { display: none !important }
    • if you want to get rid of second home link on hamburger menu – you know what to do?
      f.e. give a custom-class to that home menu-item : only-desktop
    • and have then for both : #avia-menu .only-burger.menu-item, #av-burger-menu-ul .only-desktop { display: none !important }

    in reply to: set image alt tag and title in image media element #1158031

    Thank you for your follow-up on this. I think I can currently only live with the image ALB having this option.
    From my point of view this topic can be closed.

    in reply to: YouTube nocookie links #1157419

    You can’t use Youtube any more soon – at least not without your own account and upload there.
    The commercials are just annoying and the many ads that are shown there are unbearable.
    I think vimeo is laughing at this marketing policy.

    in reply to: Add Color Overlay to Column Background Image #1157053

    by the way the code couldn’t work because you changed the markup totaly – the ID etc .
    there was first an ID of: #banner – now it is : #av_section_12
    selector now is #av_section_12 .flex_column.av_one_full

    So if you like to see what happens :

    #av_section_12 .flex_column.av_one_full {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-color: rgba(0, 147, 255, 0.5) !important;
        background-blend-mode: soft-light !important;  
    }

    by the way – there are methods to have the grid-row not as full-width element.

    in reply to: Button in header near the hamburger menu #1156992

    make a custom link to your menu as last link on the menu!
    Link Target – you know it better
    Link Label : Order Now
    Menu Style : Button Style Colored
    Custom Class: menu-item-avia-special

    see her: https://webers-testseite.de/ – look what happens to the button on opened hamburger !
    styling of the button is quick css work.

    in reply to: YouTube nocookie links #1156981

    hm – yes no cookies but … all that google stuff :
    this is an iframe embedded youtube video an the no-cookie version.

    in reply to: Video audio #1156870

    i think – no – not only on GDPR (DSGVO on german spoken Countries) Reasons.
    With a selfhosted video this could be done.
    https://webers-testseite.de/mute-unmute/
    Besides these infos – the browsers do it all their own way.
    Look (Listen) here on Enfold Fullwidth Easy Slider – it starts muted – and you can turn up the volume on player controls. https://webers-testseite.de/vimeo/
    Listen here in a codeblock and with iframe – but it does not autostart on firefox (chrome does) : https://webers-testseite.de/vimeo-2/

    in reply to: second widget line in footer #1156817

    Guess Both ( second footer widget row and socket widget area ) is not needed.
    Contrary to my intention to keep me a little in the background here, I wanted to update the old post again.
    See in action: https://webers-testseite.de/guenni/#footer

    in reply to: second widget line in footer #1156815

    this here is only needed if you like to have 6 Columns for Original Footer Widget too

    the 6th column is sometimes set in the source code, sometimes not.
    f.e. in the originally footer there is allready a case 6 prepared.
    but on the /includes/admin/register-admin-options.php not (only 5 for original footer columns) – you can add it there ( from line 4346ff)

    $avia_elements[] =	array(
    		"slug"	=> "footer",
    		"name" 	=> __("Footer Columns", 'avia_framework'),
    		"desc" 	=> __("How many columns should be displayed in your footer", 'avia_framework'),
    		"id" 	=> "footer_columns",
    		"required"	=> array( 'display_widgets_socket', '{contains_array}all;nosocket' ),
    		"type" 	=> "select",
    		"std" 	=> "4",
    		"subtype" => array(
    			__('1', 'avia_framework') =>'1',
    			__('2', 'avia_framework') =>'2',
    			__('3', 'avia_framework') =>'3',
    			__('4', 'avia_framework') =>'4',
    			__('5', 'avia_framework') =>'5',
    			__('6', 'avia_framework') =>'6'));

    then you can do in /includes/admin/register-widgets-area.php:

    	//dynamic widgets
    	
    	#footer
    	$footer_columns = avia_get_option( 'footer_columns', '6' );
    	
    	for ($i = 1; $i <= $footer_columns; $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' => '<h3 class="widgettitle">', 
    			'after_title' => '</h3>', 
    			'id'=>'av_footer_'.$i
    		));
    	}

    and if you want to make it perfect – you can style the dummy widget data on the bottom for both ( socket and footer widgets) for case 6

    in reply to: second widget line in footer #1156806

    by the way – here are the old files to have a second widget-area row in the footer from above ! ( the old ones are deleted)

    See: Footer.php
    Download: footer.php
    Register via child-theme functions.php:

    function my_avf_option_page_data_add_elements( array $avia_elements = array() )
    {
      $slug = 'footer';
      $id = 'footer_columns';
      
      $new_element =  array(
    	"slug"	=> "footer",
    	"name" 	=> __("Second Row of Footer Columns", 'avia_framework'),
    	"desc" 	=> __("How many columns should be displayed in your footer", 'avia_framework'),
    	"id" 	=> "footer_two_columns",
    	"required"	=> array( 'display_widgets_socket', '{contains_array}all;nosocket' ),
    	"type" 	=> "select",
    	"std" 	=> "4",
    	"subtype" => array(
    		__('1', 'avia_framework') =>'1',
    		__('2', 'avia_framework') =>'2',
    		__('3', 'avia_framework') =>'3',
    		__('4', 'avia_framework') =>'4',
    		__('5', 'avia_framework') =>'5',
    		__('6', 'avia_framework') =>'6'));
      
      $found = false;
      $index = 0;
      
    
      foreach( $avia_elements as $key => $element )
    	{ $index++;
    	    if( isset( $element['id'] ) &&  ( $element['id'] == $id ) && isset( $element['slug'] ) && ( $element['slug'] == $slug ) ) { 
    	      $found = true;
    	      break;
    	   	}
      	} 
    		 if( ! $found ) { 
    				$avia_elements[] = $new_element;
    		 }
    		 else {
    		    $avia_elements = array_merge( array_slice( $avia_elements, 0, $index ), array( $new_element ), array_slice( $avia_elements, $index  ) );
    		 }
      return $avia_elements;
    }
    add_filter( 'avf_option_page_data_init', 'my_avf_option_page_data_add_elements', 10, 1 );
    
    /*** Register new footer widget areas */
    function footer_two_widgets_init() {
    	$footer_two_columns = avia_get_option( 'footer_two_columns', '6' );
    	for ($i = 1; $i <= $footer_two_columns; $i++)
    	{
    		register_sidebar(array(
    			'name' => 'Second-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' => '<h3 class="widgettitle">', 
    			'after_title' => '</h3>', 
    			'id'=>'av_footer_two_'.$i
    		));
    	}
    }
    add_action( 'widgets_init', 'footer_two_widgets_init' );
    in reply to: second widget line in footer #1156800

    about socket widget columns:

    i needed this for a customer – and if you like to know how – very similar to the procedure above:
    here is the download of the edited footer.php : PasteBin
    here you can see before for i have done: https://pastebin.com/u8yuxcK6

    to register then the new widget areas and admin options etc. you had to insert this to your child-theme functions.php

    function my_avf_option_page_data_add_elements( array $avia_elements = array() )
    {
      $slug = 'footer';
      $id = 'footer_columns';
      
      $new_element =  array(
    	"slug"	=> "footer",
    	"name" 	=> __("Socket Columns", 'avia_framework'),
    	"desc" 	=> __("How many columns should be displayed in your socket", 'avia_framework'),
    	"id" 	=> "socket_columns",
    	"required"	=> array( 'display_widgets_socket', '{contains_array}all;nofooterwidgets' ),
    	"type" 	=> "select",
    	"std" 	=> "3",
    	"subtype" => array(
    		__('1', 'avia_framework') =>'1',
    		__('2', 'avia_framework') =>'2',
    		__('3', 'avia_framework') =>'3',
    		__('4', 'avia_framework') =>'4',
    		__('5', 'avia_framework') =>'5',
    		__('6', 'avia_framework') =>'6'));
      
      $found = false;
      $index = 0;
      
    
      foreach( $avia_elements as $key => $element )
    	{ $index++;
    	    if( isset( $element['id'] ) &&  ( $element['id'] == $id ) && isset( $element['slug'] ) && ( $element['slug'] == $slug ) ) { 
    	      $found = true;
    	      break;
    	   	}
      	} 
    		 if( ! $found ) { 
    				$avia_elements[] = $new_element;
    		 }
    		 else {
    		    $avia_elements = array_merge( array_slice( $avia_elements, 0, $index ), array( $new_element ), array_slice( $avia_elements, $index  ) );
    		 }
      return $avia_elements;
    }
    add_filter( 'avf_option_page_data_init', 'my_avf_option_page_data_add_elements', 10, 1 );
    
    /*** Register new socket widget areas */
    function socket_widgets_init() {
    	$socket_columns = avia_get_option( 'socket_columns', '6' );
    	for ($i = 1; $i <= $socket_columns; $i++)
    	{
    		register_sidebar(array(
    			'name' => 'Socket - column'.$i,
    			'before_widget' => '<section id="%1$s" class="widget clearfix %2$s">', 
    			'after_widget' => '<span class="seperator extralight-border"></span></section>', 
    			'before_title' => '<h3 class="widgettitle">', 
    			'after_title' => '</h3>', 
    			'id'=>'av_socket_'.$i
    		));
    	}
    }
    add_action( 'widgets_init', 'socket_widgets_init' );

    this will end up in this Enfold Options Dialog:


    in reply to: set image alt tag and title in image media element #1156680

    Sorry –

    If you create a gallery ( masonry gallery ) there is that point where you can insert under each image a “Captiion” – this will only affect the caption for that specific gallery – so it will be added specifically only here to the image.

    i tested it now and the “Caption Input Field” is set globally too ( green arrow )
    I have mistakenly believed that this is an idividual set entry

    That “Caption” will end in a data-avia-tooltip for the image and is used as title for the a-tag ( to show on lightbox under the image )
    so if i create two new input fields – then they must not affect the media properties globally.
    The place where the input fields could be placed is already there under the green arrow – but as I said I can’t find the place where I could place the input fields in the code

    in reply to: set image alt tag and title in image media element #1156676

    Thanks Ismael : what i mean is if i put something in the copyright field – it will change the copyright for all pages where this image is used – and that makes sense – this is a global property.

    An Alt or Title attribute can differ depending on how and where it is used. Just when I think of the use on multilingual pages. Yes, I know that WPML achieves this by providing an additional plugin (Media Translation) for the different languages. But it has the disadvantage that it creates duplicate images and inflates a backup.

    If you create a gallery ( masonry gallery ) there is that point where you can insert under each image a “Captiion” – this will only affect the caption for that specific gallery – so it will be added specifically only here to the image. There I thought I could create two additional input fields, which would add the attributes here similarly only for the use of the image.

    in reply to: set image alt tag and title in image media element #1156465

    Yes but this will add it permanently.? – so it will change everywhere the image is placed.
    but we want to be able to set alt- and title-attributes as needed without triggering an entry in the media library.
    As far as i know the copyright field goes to the attachements.

    As you can see in the image.php i created – the alt and title attributes are set but do not change the alt and title entries on attachment.

    Well this is my layout:

    but after that – open the cell with the easy slider – it seems that the cell got a padding on default of 30px – you had to remove this.
    https://webers-testseite.de/grid-row-with-slide-show/

    but i guess that images in landscape will be best. And text on the other cell is less high than the slide-show

    in reply to: set image alt tag and title in image media element #1156042

    You are welcome. It would be nice to have this for the galleries too! but my abilities and times are limited.

    by the way – there are comments in the php to see what is new or changed – so you can see how it is done

    in reply to: Tabelle formatieren? #1156017

    The crux of the matter is that one can distinguish same selectors by counting.

    But be careful because it is counted over all.
    So if div, p, ol, ul tags appear , then it is counted over all.
    Sometimes it is advisable to go over nth-of-type: The :nth-of-type(n) selector matches every element that is the nth child, of a particular type, of its parent.

    https://css-tricks.com/the-difference-between-nth-child-and-nth-of-type/

    see the markup from: “Let’s say our markup changed to this:” there you can see that nth-child will not work as wanted.

    in reply to: header security entries #1155949

    Most people do forget to set these helpfull headers. Many of the known attack possibilities ( man in the middle , cross-site-scripting etc.) are almost impossible then.
    It just needs some reworking, since everyone wants to have different features on his site; (Google Maps, Google Analytics, Youtube, Vimeo, CDNs to present media files).

    What I’m only surprised about is that some things I thought were covered by the ‘self’ setting, which is not the case (script loading and stylesheet loading). To have normal outlook of Enfold options i had to set for:

    script-src ‘self’ ‘unsafe-eval’ ‘unsafe-inline’
    style-src ‘self’ ‘unsafe-inline’

    So I allow scripts and stylesheets to be loaded insecurely inline (http).

    My guess was that some of these get parameters ( https://codex.wordpress.org/Determining_Plugin_and_Content_Directories ) are causing insecure loading. Because i force my whole site to be https by wp-config entry – i have these inconsistancies – like the image above shows you.

Viewing 30 posts - 5,821 through 5,850 (of 11,489 total)