Forum Replies Created

Viewing 30 posts - 2,671 through 2,700 (of 11,872 total)
  • Author
    Posts
  • in reply to: Submenu sticks on mobile #1400335

    this will be not as easy as it sounds – because unfortunately on the one hand in the corresponding css (menu.css) some statements are set to important, which makes an overwriting via quick css impossible, on the other hand there are also some things to change in the script file.

    the whole block : if( burger_menu.is(":visible") ) had to be commented out !

    The possibility now is to have all child-theme files for the menu. And because the css and js files are loaded via menu.php – this had to be substituted too.

    See a working test page: https://webers-testseite.de/transparent-header/

    you can download all files from here:
    https://webers-testseite.de/menu-files.zip
    all files inside this zip comes to your child-theme shortcodes folder ! ( child-theme/shortcodes – if not present allready – create this subfolder )
    If you haven’t still activated the loading of alb via child-theme you had to place this snippet into your child-theme functions.php

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    in reply to: Font Issues #1400330

    What Font do you realy need?
    Myriad Pro … light, regular, bold etc. ?

    I would keep my hands off cufonfonts.com. They also offer fonts that are clearly commercial fonts (such as Myriad Pro). The use is therefore illegal. You should therefore either rely on trustworthy sources, or look for a good free alternative to the desired premium font.
    If you own the Myriad Pro – be shure that it includes the webfont too! This is usually not the standard.

    The PTSans seems to be very similar. And you can download it at Google and host the font on your own server.

    in reply to: How to hide Headers and Footers? #1400328

    only for that page:

    #top.page-id-311 #main  {
      padding-top: 0 !important;
    }
    
    #top.page-id-311 #main  main.template-page.content {
      padding: 0 !important;
    }

    if you like to have that on all blank pages – use nikko’s selector #top.blank …

    #top.avia-blank #main  {
      padding-top: 0 !important;
    }
    
    #top.avia-blank #main  main.template-page.content {
      padding: 0 !important;
    }

    ich habe es nie als Problem empfunden einen Shortcode via Text-Alb oder Codeblock Element einzusetzen.
    CF7 bietet mit sinnvollen Plugins – wie Upload oder Conditional Fields einfach so viel mehr Möglichkeiten, dass ich den kleinen Umstand verschmerzen kann.

    CF7 hat eigentlich eine gute Doku. https://contactform7.com/docs/
    allerdings nur auf Englisch – hier mal eine Seite in deutsch: https://www.webtimiser.de/contact-form-7-einrichten/

    Das Plugin funktioniert mit CF7 auf Anhieb, und ohne das man etwas in die Formulare einbringen muss. Es ist ein Honeypot, funktioniert aber eben pfiffiger als manch andere. Wenn man mal merken sollte das doch mal mehr SPAM eintrudeln wechselt man im Ersten Tab diese Zufallsvariable.

    in reply to: Change Layout and design of Category pages #1400199

    see: https://enfold.webers-webdesign.de/category/speziell/ with that custom hook and with page ID .

    in reply to: Change Layout and design of Category pages #1400192

    Unfortunately, the page-content shortcode does not work here.

    echo do_shortcode("[av_postcontent link='page,40273']");  // your page-id 
    

    ______________________
    just to play a bit with that trial to insert on an archive page a top content

    PS: the hook Mike uses is the one that is the only possible – but it is not so good i think – for this needs. If there would be a better hook f.e.
    after <main class='content …
    so if you like to think of a child-theme archive.php you can insert on that place your own hook:

    we can make our own page content shortcode – f.e:

    function get_post_page_content( $atts ) {
        extract( shortcode_atts( array(
            'id' => null,
            'title' => false,
        ), $atts ) );
    
        $the_query = new WP_Query( 'page_id='.$id );
        while ( $the_query->have_posts() ) {
            $the_query->the_post();
                if($title == true){
                the_title();
                }
                the_content();
        }
        wp_reset_postdata();
    }
    add_shortcode( 'my_content', 'get_post_page_content' );

    and insert our page content via page ID to that new hook:

    function ava_insert_page_content_before_loop_mod() {
    	if(is_category('grafik')) {
    		echo do_shortcode("[my_content id='43262']");  // here you had to insert the ID 
    	}
    }
    add_action('ava_inside_content', 'ava_insert_page_content_before_loop_mod', 100);

    You can then style a page ( as Mike said – better without any full-width alb element (color-section, tab-section, grid-row) ) – and insert it to your category via ID.

    bei der freien Version funktioniert Enfold Kontakt noch nicht. Da du aber oben CF7 erwähntest – das geht automatisch auch bei der freien Version.
    Teste es – du wirst überrascht sein wie gut es filtert.

    in reply to: Slideshow in Gridrow #1400137

    i would recommend the solution with absolute position the followed column container over an easy slider alb element.
    it has all advantages of a real slider – with crossfading between images. And the option to play with transition speed etc. pp.

    in reply to: sticky header mobile not working #1400109

    on that page: https://nlsla.org/ you had set the padding-top of #main to zero.
    if the header is sticky you had to change that to 80px as in my code above.

    see above comments on these rules if you like to have background from the beginning.

      #top .av_header_glassy.av_header_transparency .header_bg {
        background-color: #376b9e;
        opacity: 1;
        filter: alpha(opacity=100);
      }
    
      .responsive #top .header_bg {
        opacity: 1;
        filter: alpha(opacity=100);
        background-color: #fff !important;
      } 

    some settings on top might not be usefull for your pages. – but try it first – then we can correct the settings

    PS:
    on that page (nlsla.org) – you have overwritten standard enfold setting ( middle ) :

    @media only screen and (max-width: 767px) {
      .avia-section.av-minimum-height .container .content {
        vertical-align: top;
      }
    }

    but this is not good – because your buttons will be at top in responsive case.

    in reply to: sticky header mobile not working #1400107

    there are a lot more css rules to set. All depends first on your header settings. header_meta or not – does the header_meta scroll away on responsive case? ( “Unstick Topbar” ). Then where did your hamburger breakpoint is set? 767 or 989 or something completely different?
    On transparency or glassy headers – do you like to have them transparent or glassy first too or not? …

    see here working examples:
    https://consulting.webers-testseite.de/
    https://basis.webers-testseite.de/

    Edit: you had to change your bg-color for your needs : #376b9e for https://lunchticket.org/
    you can try as starting point:

    /****** sticky header *** responsive case when burger is visible - you had to edit then the media query *************/
    @media only screen and (max-width: 989px) {
      
      /******  might be neccessary to set 
        .responsive .avia-svg-logo svg {
          max-width: 280px;
        }
      *******/
      
      .responsive #top #wrap_all #header .container {
        width: 95%;
        max-width: 95%;
      }
    
      /*** if top-bar should be visible on mobile - it will be 110px ***/
      
      #header {
        position: fixed !important;
        height: 80px !important;
        max-height: 80px !important;
      }
      .responsive #top .av-logo-container ,
      .responsive #top .logo a,
      .responsive #top .logo img,
      .responsive #top .logo svg {
        height: 80px !important;
        max-height: 80px !important;
        line-height: 80px !important;
      }
      .responsive #top .av-main-nav .menu-item-avia-special a {
        height: 80px !important;
        line-height: 80px !important;
      }  
    
    /***** see comment below ******/
      #top .av_header_transparency,
      #top .av_header_transparency .header_bg {
        background: transparent !important;
      }
    
    /*******   if you do not like to have first transparency then backgound-color 
     * remove the above transparent rule and use this instead : 
    
      #top .av_header_glassy.av_header_transparency .header_bg {
        background-color: #fff;
        opacity: 1;
        filter: alpha(opacity=100);
      }
    
      .responsive #top .header_bg {
        opacity: 1;
        filter: alpha(opacity=100);
        background-color: #fff !important;
      } 
    **************/
    
      #top #header.header-scrolled .header_bg {
        background-color: #FFF !important;
        opacity: 1
      }
      .responsive.html_mobile_menu_tablet #top .av_header_transparency .logo img.alternate, 
      .responsive.html_mobile_menu_tablet #top .av_header_transparency .logo .subtext.avia-svg-logo-sub {
        display: block !important;
      }
      .responsive.html_mobile_menu_tablet #top .av_header_transparency.av_alternate_logo_active .logo a > img, 
      .responsive.html_mobile_menu_tablet #top .av_header_transparency.av_alternate_logo_active .logo a > svg {
        opacity: 0;
      }
      html:not(.html_header_transparency) #top .header_bg {
        background-color: #FFF !important;
      }
      .responsive.html_header_transparency.html_header_top #top #main {
        padding-top: 0px !important;
      }
      .responsive:not(.html_header_transparency).html_header_top #top #main {
        padding-top: 80px !important;
      }
    }
    
    @media only screen and (max-width: 767px) {
    /******  again might be neccessary to set - depends on your logo and if you are using a svg
      .responsive .avia-svg-logo svg {
        max-width: 220px;
      }  
    *****/
      .responsive #header_meta .sub_menu > ul > li {
        padding: 0 5px;
      }
    } 

    Ein sehr gutes Plugin – schon auch in der Freien Version ist WP Armour
    Dort im Link oben kannst Du auch schon nachlesen, wo das Plugin sich automatisch einbindet. Enfold ist in der Liste nicht aufgeführt, aber auch Enfold Kontaktformulare werden unterstützt.
    Ich bin mir nicht sicher, ob das nur bei meiner Pro Version so ist, aber die “Enable 2 Level Spam Check” sollte man nicht aktivieren. Hier hatte ich zuviele false positiv Resultate.
    Such mal nach Erfahrungen mit dem Plugin – danach wirst du dein f12 Captcha ausmisten.

    all infos are on my avatar or username. Send me an e-mail

    show me please the page – or post for the mods in private content – ps read my post that i set in the time you posted yours.

    Well you had to use these characters: ™ ® © then the code will do the rest. A TM will not work.
    It works on my end here.
    Even in breadcrumb – they will be replaced. But if you like to have it

    But if you even want to have it on:

    then you had to copy&paste the character on f.e.: http://unicode.e-workers.de/entities.php
    or use the unicode decimal for it e.g: ® in the page title
    sorry boardsoft will immedeitately transfer the entity :

    if you are having this a lot and only on copyright, tradmark etc. you can do this in one short snippet for child-theme functions.php:
    just place that character and let the script do the sup-wrapper

    function wrap_copyright_text_with_sup(){
    ?>
    <script>
    (function($) {
    $(document).ready(function() {       
         $('body :not(script)').contents().filter(function() {
            return this.nodeType === 3;
            }).replaceWith(function() {
                return this.nodeValue.replace(/[™®©]/g, '<sup>$&</sup>');
         });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'wrap_copyright_text_with_sup');
    

    if you like to have manual control just place vor Menu Items in Navigation Label : <sup>ABC</sup>
    or to have it sub similar to it H<sub>2</sub>O
    edit menu-item ( red circle ):

    Can you try this in your child-theme functions.php:

    function custom_avf_post_css_create_file( $create ){
    	return true;
    }
    add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );

    the css is created anyway – but not saved inline – all goes to extra css file inside /wp-content/uploads/dynamic_avia/

    in reply to: Slideshow in Gridrow #1400022

    maybe this is a possible way to reach the same only with enfold alb usage:

    On newer Enfold we got the options to position that 1/1 container absolutely – and if we place it absolute: 0 ( set to a higher z-index )
    We have then no background-images but a real slider with real cross-fade options because we got images.
    The only problem is responsive behavior : In the end, the image of the slider determines the height of the cell. If this content gets higher then the images – it will “overflow” this “background-slider”. This absolute positioning you can set only for wider screens – and on mobile you can have the normal behavior etc. pp.

    see example: https://webers-testseite.de/test-temp/

    in reply to: Slideshow in Gridrow #1399953

    One thing that bothers me with my code – is that the fading goes to the entire container. So this also affects the content. It would be better if only the background would experience a fading.

    so definitly use Yigits Code for now – i will look to change my code

    in reply to: Slideshow in Gridrow #1399942

    i got this function – and it is a bit different from Yigits – but it is nearly the same background on how to achive this.

    But now my question – this looks only good after the first cycle – till the images are in the browser cache.
    Is it possible to have a preloading of the image array on page loading?

    function av_grid_slide(){
    ?>
    <script>
    window.addEventListener("DOMContentLoaded", function () { 
        (function($){  
    
            var cellSlider = $('.grid-slider');
            var images = [
                      'url(/wp-content/uploads/test-london.jpg)', 
                      'url(/wp-content/uploads/test-paris.jpg)',
                      'url(/wp-content/uploads/test-newyork.jpg)',
            ];
    
            $(function () {
                var i = 0;
                cellSlider.css("background-image", images[i] );
                setInterval(function () {
                    i++;
                    if (i == images.length) {
                        i = 0;
                    }
                    cellSlider.fadeOut("1000", function () {
                        $(this).css("background-image", images[i] );
                        $(this).fadeIn("1000");
                    });
                }, 5000);
            });
    
        })(jQuery);
     });
    </script>
    <?php
    }
    add_action('wp_footer', 'av_grid_slide'); 

    btw: that double Quotation is in Yigits Code above

    but please could you discuss the solution then please!
    Sometimes it helps other participants to learn from the problems of others.
    My guess was that you had old code in your child theme functions.php that was causing conflicts.

    in reply to: Text instead of parallax #1399862

    these are page-content inserted via the page-content alb to your page? or how do you inserted this content?

    _______
    btw: think of the former tip for those fixed images – and mobile support. This does not work on parallax – so if there is the custom-class : bg-fixed set before – because it was a former fixed bg style.

    in reply to: How to add a Read more in a textbox #1399791

    it has to be in a text-block alb ?
    Or can you use the accordion alb instead. ?

    by the way – on a text-block the trick via details will work :

    
    <details>
    <summary>read more …</summary>
    <p>Here comes the hidden text inside</p>
    </details>
    
    in reply to: Previous Next Button on mobile device #1399581
    @media only screen and (max-width: 767px){
      .responsive #top .avia-post-nav {
        display: block;
      }
    }

    but i guess on next enfold version there will be a swipe support on post-navigation.

    in reply to: same height for all the symbol boxex #1399579

    This is exactly why I asked for the link. There are better methods (flex-layout or even better grid-layout) to solve the same height problem – even without aiming at quite a few media-query solutions with min-height. But obviously solutions from non-moderators are not wanted. Too bad

    in reply to: Author image on author page #1399537

    i don’t know where you need this rule – but you had to be more spezific for the elements you like to influence.

    .archive.author header.entry-content-header {
      margin-bottom: -50px;
    }

    this is causing it – remove that rule and:

    #top .template-author .content .post .entry-content-wrapper {
      padding-bottom: 0px;
    }

    and because you do not show meta content here
    and if you do not like to have that separation

    #top .template-author .content .post-meta-infos,
    #top .template-author .content .author-extra-border {
      display: none;
    }
    
    #top .template-author  .page-heading-container {
      border-bottom: none !important
    }
    in reply to: Author image on author page #1399529
    #top .author-box {
      display: grid
    }
    in reply to: Author image on author page #1399519

    if you like to style it – and have it a bit larger:

    #top .post-author-format-type .rounded-container {
        width: 100px;
        height: 100px;
        border-radius: 25%
    }
    
    #top .post-author-format-type .rounded-container img {
      width: 100%;
      border-radius: 25%
    }
    in reply to: Author image on author page #1399516

    i do not know where your rule comes from – because merging is active :
    there is:

    @media only screen and (max-width: 767px){
    .responsive .template-blog .blog-meta {
      display: none;
    }
    }

    so try in your quick css:

    @media only screen and (max-width: 767px){
    .responsive #top .template-blog .blog-meta {
      display: block;
    }
    }
Viewing 30 posts - 2,671 through 2,700 (of 11,872 total)