Forum Replies Created

Viewing 30 posts - 3,841 through 3,870 (of 11,549 total)
  • Author
    Posts
  • ok – if you can not post here a public link to the concerning page – leave a link in private content – but then you had to wait til a mod is here to look for it.
    but there had to be a fault in your installation i guess. Because i can set every svg i like with even every color-section setting.

    ( You didn’t have any child-theme alb elements on that installation? It also happened to me that I forgot to update the user-defined alb elements as well.

    first of all : i think 5px is very small – you will hardly see any difference.

    Did you choose for your svg divider that gray from the first ( adjacent ) color-section?
    ( Divider Color – Select the color for this divider here … )
    Is there a page we can inspect?

    in reply to: Different header on different page #1318772

    @Donkies11

    … The better solution:
    ok – but style the header options for all the other pages – with custom height f.e. 80px !
    then put this to your child-theme functions.php

    function avf_header_setting_filter_mod($header) {
      if ( is_front_page() ) {
        $header['bottom_menu'] 	= 'header_bottom_menu_active';
        $header['header_layout']      = 'logo_center bottom_nav_header menu_right';
        $header['header_sticky']      = 'header_sticky';
        $header['header_shrinking']   = 'header_shrinking';
        $header['header_stretch']     = 'header_stretch';
        $header['header_size']        = 'custom'; 
        $header['header_custom_size'] 	= '150' ; // if custom size : integer value in px
          // here we do not add classes by .=  but build up all the new needed one
        $header['header_class'] 		=  " av_logo_center av_bottom_nav_header av_menu_right av_header_sticky av_header_shrinking av_header_stretch";  // when adding, it would be important that the first class added has a space in front of it
      }
      return $header;
    }
    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 10, 1);

    Important to notice : if you like to have a shrinking header – it has to be there on general – and then remove it for those extra pages.
    if you set the header custom size to lower than 65 – shrinking is disabled

    ___________________________________ just for info
    these are other options ( no added class is needed on #header )

    $header['header_topbar'] 		= 	'header_topbar_active'; 
    $header['header_social']   		=   'icon_active_left extra_header_active';  	// or : 'icon_active_right extra_header_active'
    $header['header_secondary_menu']   	= 	'secondary_left extra_header_active';		// or : 'secondary_right extra_header_active'
    $header['header_phone_active']		= 	'phone_active_left extra_header_active';	// or : 'phone_active_right extra_header_active' 
    • This reply was modified 3 years, 11 months ago by Guenni007.
    in reply to: Different header on different page #1318753

    @Donkies11 : maybe this could be helpful for you: https://kriesi.at/support/topic/smaller-version-of-header-for-one-page/#post-1316282

    • This reply was modified 3 years, 11 months ago by Guenni007.
    in reply to: Mods: Should I update from 4.8.3 to 4.8.6.2? #1318749

    Apart from the following, i would still wait until 4.8.6.3. They have some good new features.

    I always do use this procedure:
    https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107

    but having a backup is always a good idea. I like Duplicator and even in its free version it will do the job perfectly.

    in reply to: Displaying the day and date in the header #1318659

    create your own shortcode f.e. ( sorry – it is mine – so its for german time )
    binding words as friday the 28 had to be escaped
    usage in content : [show-date]

    function show_date_with_shortcode() { 
      date_default_timezone_set('Europe/Berlin');
      setlocale(LC_TIME, 'de_DE.UTF-8');
      $uhrzeit = date_i18n( 'l \d\e\n ' . get_option( 'date_format' ) . ' ' . get_option( 'time_format' ). ' \U\h\r'  );
      return $uhrzeit ;
    }
    add_shortcode( 'show-date', 'show_date_with_shortcode' );

    or in this way:

    function datum_shortcode() {
      $year = date_i18n('Y');
      $day = date_i18n('d');
      $month = date_i18n('F');
      $weekday = date_i18n('l');
      $datecolor = date_i18n('l') == 'Sonntag' ? 'red': 'gray' ;
    
      $datum = '<div id="kalenderblatt"><div class="monat-jahr"><span class="monat">'.$month.'</span><span class="jahr">' .$year.'</span></div><div class="tag ' .$datecolor.'">'.$day.'</div><div class="wochentag">'.$weekday.'</div></div>';
      return $datum;
    }
    add_shortcode('show-date', 'datum_shortcode');
    

    to have with a little css:
    https://basis.webers-testseite.de/calendar-sheet/

    i understand it in this way:
    I have a bilingual website and use Polylang for it. I have in the copyright info also the imprint (Link) and privacy policy (link) inside. Currently, both are therefore (both links are there in english and german – so 4 Links) unfortunately also for the English website in German or just linked to the German pages. Is there a way to add a separate copyright with english privacy policy (incl. link to the page) and imprint for the english website?

    so this will solve the issue:

    [polylang lang="en"]<a href="https://domain.com/en/imprint">Imprint</a> - <a href="https://domain.com/en/privacy">Privacy</a>[/polylang][polylang lang="de"]<a href="https://domain.com/impressum">Impressum</a> - <a href="https://domain.com/datenschutz">Datenschutz</a>[/polylang]
    
    in reply to: webP images with Enfold #1318638

    for your copyright input field – you can activate the shortcodes usage of polylang by this in your child-theme functions.php:

    function polylang_shortcode($atts, $content = null){
    	if (empty($content))
    	return '';
    	extract( shortcode_atts( array('lang' => ''), $atts ) );
    	if (empty($lang))
    	return "<h3>You must specify 'lang' using shortcode: polylang</h3>";
    	return ($lang == pll_current_language()) ? $content : '';
    }
    add_shortcode('polylang', 'polylang_shortcode');

    after doing that you can insert to content shortcodes like this:

    [polylang lang="en"] here is your english phrase [/polylang][polylang lang="de"] und hier kommt die deutsche Entsprechung hinein [/polylang]
    

    and this will work in footer copyright input field aswell.

    or the other way round:
    You decide by giving same class to the images which belongs to each other.
    Class: group-1 will open together – etc.

    // group images for lightbox galleries (group-1, group-2 etc)
    function handle_lightbox_groups_in_gallery(){
    if(is_page(123456)){
    ?>
    <script>
    (function($){
        $(window).on('load',function() {
            $('.group-1 .lightbox-added').attr('data-group', '1');
            $('.group-2 .lightbox-added').attr('data-group', '2');
            $('.group-3 .lightbox-added').attr('data-group', '3');
            $('.group-4 .lightbox-added').attr('data-group', '4');
            $('.group-5 .lightbox-added').attr('data-group', '5');
            $('.group-6 .lightbox-added').attr('data-group', '6');
            $('.group-7 .lightbox-added').attr('data-group', '7');
            $('.group-8 .lightbox-added').attr('data-group', '8');
    
            var groups = {};
            $('.lightbox-added').each(function() {
              var id = parseInt($(this).attr('data-group'), 10);
              if(!groups[id]) {
                groups[id] = [];
              }
              groups[id].push( this );
            });
    
            $.each(groups, function() {
              $(this).magnificPopup({
                  type: 'image',
                  mainClass: 'avia-popup mfp-zoom-in mfp-image-loaded',
                  closeOnContentClick: false,
                  closeBtnInside: false,
                  gallery: { enabled:true }
              })
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'handle_lightbox_groups_in_gallery');
    in reply to: Footer in tablet view in two colums and two rows #1318339

    Ok – thanks for the response

    in reply to: Content Security Policy without using 'unsafe-inlne' #1318285

    I have tried to read into the use of the nonce attribute in CSP Level 2, but my modest script knowledge is not sufficient for that.

    in reply to: Align Icon Box Title Vertically #1318247

    Yes Rikard – he did –
    it seems that feedback about a positive solution in this forum is no longer necessary.

    in reply to: Content Security Policy without using 'unsafe-inlne' #1318243

    see here : https://kriesi.at/support/topic/header-security-entries/#post-1153114

    it is clear that if you like to use Google maps or play youtube videos you had to allow connection and script load ( and style too ) from Google Servers.
    So you can add these servers by listing them in your CSP ( see here my settings : Link )
    What makes me wonder ( and that was the reason for my topic on November 2019 ) is that the backend of a fresh installed WordPress could not work without these settings ( unsafe-inline … ).

    in reply to: Blog Featured Image Size #1318213

    but allways think of : after changing these sizes – a regeneration of the calculated thumbnails had to be done ( see this again: Then regenerate thumbnails … )
    You can read here about the influence of some parameters to those changed or new sizes: https://developer.wordpress.org/reference/functions/add_image_size/ – especially the crop ( true, false ) ;) seems to be important.

    in reply to: Align Icon Box Title Vertically #1318112

    you can try this:

    #top.page-id-137 #av_section_3 .iconbox_content_title {
      display: block;
      position: absolute !important;
      bottom: 20%;
      top: auto;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      line-height: 1.8em
    }
    in reply to: Footer in tablet view in two colums and two rows #1318002

    btw: on your english site there must be something wrong with the setup.
    Everything on main looks different to your native language. Did you synchronize your css with the native language allready?

    PPS: if you like to preserve the container-width of the normal content change the max-width in that one rule above to:

    #footer .container {
      display: flex;
      flex-flow: row wrap;
      justify-content: space-evenly;
      width: 100%;
      padding: 0  !important;
      max-width: 1340px !important;  /*** this is different to the rule above ***/
      left: 0!important
    }
    in reply to: Footer in tablet view in two colums and two rows #1317997

    well if it is your homepage – i would flex the content and use the whole width of the viewport,
    and because you have one time the featured images on the right once on the left it is hard to say what text belongs to the image.
    So maybe you colorize the columns to have a better overview.

    #footer {
      padding: 25px 0 5px 0;
    }
    
    #footer .container {
      display: flex;
      flex-flow: row wrap;
      justify-content: space-evenly;
      width: 100%;
      padding: 0  !important;
      max-width: 100% !important;
      left: 0!important
    }
    
    #footer .container:after{
      display: none
    }
    
    #footer .container .flex_column {
      flex: 0 1 22%;
      width: unset !important;
      margin: 0 0 20px 0;
      padding: 10px;
      background-color: #333
    }
    
    #footer .container .flex_column section {
      padding: 0 15px;
    }
    
    @media only screen and (max-width: 1149px) {
      #footer .container {
        justify-content: space-evenly;
        width: 100%;
      }
      #footer .container .flex_column {
        flex: 0 1 46%;
        width: unset !important;
        margin: 0 0 20px 0;
      }
    }
    
    @media only screen and (max-width: 767px) {
      #footer .container {
        justify-content: space-evenly;
        width: 100%;
      }
      #footer .container .flex_column {
        flex: 0 1 90%;
        width: unset !important;
        margin: 0 0 20px 0;
      }
    }

    and on less wide screens: 2rows 2columns:

    on small screens: 1 column only

    in reply to: Checkboxes stretched #1317970

    A tried and tested means of circumventing the definitions determined by the browsers is not to display the checkbox itself (opacity: 0) but to build a substitute in the form of a pseudo-container.

    you can see two examples in the contact-form : https://webers-testseite.de/kontakt/

    in reply to: block editor only for posts ? #1317850

    in this combination it works

    Select Your Editor -> Use Classic Editor

    add_theme_support( 'avia_gutenberg_post_type_support' );
    
    function disable_gutenberg_for_cpt($current_status, $post_type){
        // Use your post type key instead of 'portfolio'
        if ($post_type === 'portfolio') return false;
        return $current_status;
    }
    add_filter('use_block_editor_for_post_type', 'disable_gutenberg_for_cpt', 10, 2);
    in reply to: Remove h3 from masonry gallery #1317839

    this comes to child-theme functions.php:

    function my_avf_customize_heading_settings( array $args, $context, array $extra_args = array()){
      if( $context == 'avia_masonry' ){
        $args['heading'] = 'p';              
      }
      return $args;
    }
    add_filter( 'avf_customize_heading_settings', 'my_avf_customize_heading_settings', 10, 3 );
    in reply to: Nach WordPress Update auf 4.8 Fehlermeldung #1317768

    by the way: if you goto advanced options of layerslider :
    i disabled some of the standard settings ( i do not use gutenberg etc. ) the message is gone:

    And i think it is only to disable the gutenberg option on the bottom.

    in reply to: Nach WordPress Update auf 4.8 Fehlermeldung #1317766

    Genau die gleiche / ähnliche Meldung bei mir.

    Warning: Array to string conversion in … …/wp-includes/script-loader.php on line 2733
    
    Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in 
    … … /wp-includes/class.wp-dependencies.php:166 Stack trace: #0 
    … … /wp-includes/class.wp-dependencies.php(166): explode('?', Array) #1 
    … … /wp-includes/class.wp-styles.php(371): WP_Dependencies->all_deps(Array, false, false) #2 
    … …/wp-includes/class.wp-dependencies.php(106): WP_Styles->all_deps(Array) #3 
    … …/wp-includes/script-loader.php(2739): WP_Dependencies->do_items(Array) #4 
    … …/wp-includes/class-wp-hook.php(303): wp_add_iframed_editor_assets_html('') #5 
    … …/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #6 
    … …/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #7 
    … …/wp-admin/admin-footer.php(105): do_action('admin_footer-po...') #8 
    … …/wp-admin/post.php(369): require_once('/www/htdocs/w01...') #9 {main} thrown in 
    … …/wp-includes/class.wp-dependencies.php on line 166

    if i do deactivate the implemented layerslider the error message is gone

    in reply to: block editor only for posts ? #1317763

    so i first do the general setting for gutenberg editor on enfold theme options tab to not use it. – and then reactivate it per post.
    can i differ between post and portfolio ?

    in reply to: svg support #1317690

    Aha

    in reply to: HELP ME #1317639

    Thanks for the feedback. :)

    in reply to: Animated GIF in portfolio gallery #1317542

    well youtube and vimeo do offer now little episodes of a mp4 film as gif to use it for preview films.
    but i know that the offered gifs do not always play as it should.
    I have used the converters here: https://ezgif.com/video-to-gif

    But for the usage as “featured image” they had to fullfill some conditions. Main is size – or frame-rate. – and do not insert a recalculated ( resized image) to use as featured image. so resize it on the link above yourself to get a nice dimension to use.

    Maybe this article will help you to solve your problems: https://betterstudio.com/blog/gif-featured-image-wordpress/#how-to-fix-gif-not-animating-in-wordpress

    in reply to: svg support #1317483

    Calculation

    in reply to: Smaller version of header for one page #1317380

    You are welcome

    in reply to: svg support #1317356

    dieser Effekt Ist sicherlich häufiger anzutreffen – bei anderen Themen – daher glaube ich schon es wäre eine Bereicherung.

    Ich sehe momentan keine Probleme, da all_colors bei footer meist durch footer_color überschrieben wird.

Viewing 30 posts - 3,841 through 3,870 (of 11,549 total)