Forum Replies Created

Viewing 30 posts - 7,051 through 7,080 (of 11,481 total)
  • Author
    Posts
  • ist eigentlich dort ganz gut beschrieben.
    Wie gesagt – prinzipiell würde es auch funktionieren, wenn man die Parenttheme Files ersetzt. Geht aber dann immer bei jedem Update verloren.
    Ausserdem benötigt man wirklich nur den enfold-child/shortcodes folder ( die weitere Baumstruktur muss nicht erhalten sein)

    But this will work best with child-theme use:
    if you are using my edited ALB Elements like in the thread you mentioned – i do actualised them to the newest enfold always on this page:
    https://webers-testseite.de/edited-enfold-alb-elements/#sliders
    you will then have this on the ALB :

    in reply to: Masonry Galerie show the titel #1056706

    Hast du eine Link für uns?

    in reply to: Text neben Logo #1056699

    if it is only one line or less text – he could try to do it via avf_logo_subtext filter – thats why i asked him for details
    And if “Logo on the left, menu below. top right a text area for the opening times.” he can use normal Phonenumber Input field.

    So waiting for more input of him/her

    in reply to: GDPR – Google Maps and YouTube #1056608

    no – on my opinion the newest enfold with the conditional load is enough to get consent for the maps.
    Enfold offers to load the fonts locally! And to have on contact form a consent field.
    But if you realy like to be a 100% sure – then a double opt in is the safest way in order to abide by the law.

    But I already mentioned above that the feared wave of warnings failed to materialize and it is probably not seen so strictly.
    The law just wants to achieve that a consent is given before data is sent. Therefore I think it is much more important how I deal with tools like Google Ads or Google Analytics. The cookie Consent should actually block the entire page first, except for the data protection page and the imprint page.

    So for my websites i decided to install Borlabs Cookie Tool and to avoid Datasending before Opt In. –
    It’s always a mistake whether you run the risk of losing visitors to the site by asking too many questions, or whether you rather interpret the laws a little more generously.

    From my point of view, I prefer to protect myself – before I waste my strength in court proceedings.
    That’s why I load the Google fonts locally, ask twice if the maps should be displayed and don’t use any analysis tools.

    That’s not much code for me. And you only have to copy & paste it. I had to write it myself first.
    I provide this here for those who want to keep it similar. Who wants to act differently can do this.

    this is my sources in comaprison to a normal Page:

    No ID is sent before consent. No statisic tools are loaded. No Font from Google etc. pp. – That is paranoid indeed

    It is just a matter of interpretation whether there is a legitimate interest to use Google Fonts, and to accept that the visitor ID will be sent to Google.
    Also with Google Maps. One can represent the legal position that there is a legitimate interest to present these without demand. etc. pp.

    in reply to: header logo gets cropped when shrinking on sticky #1056511

    you got a margin-top rule on your code – switch to padding-top:

    .logo img {
        padding-top: 10px !important;
    }
    in reply to: Modify Header and Widgets #1056491

    i see that you are not working with a child theme – Every changings on functions.php of parent theme will be lost on next update.

    Therefore, I generally always advise to use a child theme.
    you can see here on that very good documentation page of enfold how to install :
    https://kriesi.at/documentation/enfold/child-theme/
    After uploading the child-theme folder with its files – and activation of the child – Enfold got some tools to import parent theme settings.

    you have here a good instruction to enter code snippets to functions.php:
    https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/

    PS: The note on that instruction page is very well:
    NOTE: Each function should have a unique name.

    because sometimes mods here on board do alway use ava_custom_script() for their tips. But if a function has no unique name you will have ( on former wordpress versions a white screen of death ) error alert. Often it is just on that reason.

    See here some info about header-widget areas:
    https://kriesi.at/documentation/enfold/header/#customization

    in reply to: Modify Header and Widgets #1056485

    Is the yellowish background color for header meta wanted?

    #header_meta {
        background-color: #fff !important;
    }

    Have you troubles to follow the instructions for new header widget area?

    on my test page i take this code to functions.php of child-theme:

    add_action( 'ava_main_header', 'header_top_widget_area' );
    function header_top_widget_area() {
      dynamic_sidebar( 'header-top' );
    }
    • after that goto widgets and fill in : “Enfold Child Custom Widget Area” header-top and click “add widget area”
    • Put in that newly crated Widget Area a Textwidget.
    • Do not set a Heading for it – leave visual editor and click on text editor of that widget.
    • Enter in the text input field:
    
    <h2>Phone: <a href="tel:+555334759213">+555 334 759 213</a></h2>

    Now we go and style the new widget:

    #header_main .widget {
        padding: 10px 0 0;
    }
    #header_main .widget .textwidget {
        text-align: center;
    }
    in reply to: Modify Header and Widgets #1056356

    you got some custom css code for header widgets ( in custom.css ) – maybe you erase them – because i fear the will missmatch for that.

    /* Widgets */
    .responsive #top #header #header_main .inner-container .widget {
        order: 0;
        /*! flex-basis: 100%; */
        padding: unset;
        clear: none!important;
        align-self: center;
        align-items: center;
        z-index: 1;
    }
    
    .responsive #top #header #header_main .inner-container .widget>div {
        width:100%;
        line-height: 180px;
        padding:1 10px;
    }
    in reply to: Modify Header and Widgets #1056355

    lets see what happens if you take a different hook for the header widget area:
    on helper-main-menu.php there are hooks to have for that custom input.
    there are different hooks in that file: one is “header_main” in the code there will be the line: do_action('ava_main_header');
    there are f.e.: ava_main_header, ava_main_header_sidebar, ava_before_bottom_main_menu, ava_inside_main_menu, ava_after_main_menu
    These are all on different places in the DOM
    Now everything depends on where you hook in :lol

    on my test page i take this code to functions.php of my child-theme:

    add_action( 'ava_main_header', 'header_top_widget_area' );
    function header_top_widget_area() {
      dynamic_sidebar( 'header-top' );
    }

    It will hook into ava_main_header and you only have to make a custom widget area called : header-top
    ( The naming is arbitrary, only has to be synchronized with the dynamic sidebar we registered on functions.php. )

    Put in the newly made widget area you prefer – i take for it the textwidget.
    Leave heading open and put in your phonenumber. on my test it is in text mode:
    <h1>Phone: <a href="tel:+492289768293">+49 228 9768293</a></h1>

    Put this to quick css:

    #header_main .widget {
        padding: 10px 0 0;
    }
    #header_main .widget .textwidget {
        text-align: center;
    }

    By the way – get rid of the other hook you placed in functions.php to get your header widget area.
    After that we will see what happens to your menu.

    And maybe it will be better to take a h2 for it – because it is no good praxis to have more than one h1 each page.

    in reply to: Hoover color icons in icon list #1056352

    Are you merging the css files : do refresh and refresh browser cache too.

    in reply to: Hoover color icons in icon list #1056350

    so show me a link – because on my installation it works.

    See here the h5 List Title 1 got a link: https://webers-testseite.de/iconlists-and-iconboxes-with-h-tag/

    .avia-icon-list a.iconlist_icon:hover {
        background-color: #900 !important;
    }
    
    .avia-icon-list a.iconlist_icon:hover {
        color: #000;
    }

    By the way you set in ALB Element the option “Link goes to title and icon”

    in reply to: Hoover color icons in icon list #1056347

    but it will only be changed if you hover the icon itself.
    there are two links – one goes to the icon the other one to the heading. So it is not so easy that both styles are influenced through one hover event:

    .avia-icon-list a.iconlist_icon:hover {
        background-color: #900 !important;
    }
    
    .avia-icon-list a.iconlist_icon:hover {
        color: #000;
    }
    in reply to: Modify Header and Widgets #1056338

    my advice for you would be to have header: logo left – menu right – social media on top bar.
    Maybe – if you got a lot of menu points a – Multiline menu
    see link above – reduce the size of the screen to see what happens.

    in reply to: open masonry gallery link in new tab #1056331

    but you said that it works fine with code from your link – so i thought you have done all right but only have troubles to select only one of them!

    That code above ( and then you will need the second one) comes to child-theme functions.php
    you will come to functions.php via dashboard – appearance – editor on the right there are “Theme files” click on functions.php
    All those snippets here from Board mostly comes to this file except css code ( which comes on common to quick css ).

    If you are not running a child-theme – you have here a lot of Theme files – and a function.php too.
    You can edit too – but you have to place those codes just after the comment lines on the bottom of the file:

    /*
     *  register custom functions that are not related to the framework but necessary for the theme to run
     */

    these custom snippets are lost everytime you update enfold – that is the reason for a child-theme use

    If it is placed – give a custom Class to the masonry where you want to have that new effect.

    Custom Class – you know how to activate the input field on Enfold.?

    in reply to: Modify Header and Widgets #1056323

    f.e. you can place it on top – between header and meta header – see here : https://webers-testseite.de/ostler/

    btw: what have you done with your menu? it breaks into a second line ( see areas )

    in reply to: Modify Header and Widgets #1056311

    First of all – enfold got a very nice Documentation Page:
    just search f.e.: https://kriesi.at/documentation/enfold/?s=header&numberposts=5&results_hide_fields=

    you will find a lot of code to get custom header styling.

    Then what hook to you used for making the header widget area?

    in reply to: New template for Enfold with smaller width #1056309

    isn’t it thought a little too complicated? The thing is managed via .responsive .container ( max-width)
    why don’t you just adjust it for that page by:
    You have to change the page id to yours

    .responsive .page-id-1234  .container {
        max-width: 800px;
    }
    in reply to: Font problem #1056294

    so my tip with outcoding those default lines in wp-config.php solves the problem.
    this is nice to know – because on the former thread the participant don’t give us positiv feedback.

    in reply to: open masonry gallery link in new tab #1056283

    so you used ismaels code?
    and if this only on a specific page it would be nice to use it with an if clause on that page – because the script is then not loaded on the other pages.
    ( i just changed the function name to know better what is influenced on the script):

    add_action('wp_footer', 'open_customlinks_in_masonry_in_newtab');
    function open_customlinks_in_masonry_in_newtab(){
    if( is_page(35) ) {
    ?>
    <script type="text/javascript">
    (function($) {
        function a() {
            $('.av-masonry-entry:not(".lightbox-added")').each( function() {
                $(this).attr('target', '_blank');
                $(this).attr('rel', 'nofollow');
            });
        }
        a();
    })(jQuery);
    </script>
    <?php
    }
    }

    so you have to know the ID of your page.

    Or if you use it with a custom class ( like above mentioned: newtab )

    add_action('wp_footer', 'open_customlinks_in_masonry_in_newtab');
    function open_customlinks_in_masonry_in_newtab(){
    ?>
    <script type="text/javascript">
    (function($) {
        function a() {
            $('.av-masonry.newtab .av-masonry-entry:not(".lightbox-added")').each( function() {
                $(this).attr('target', '_blank');
                $(this).attr('rel', 'nofollow');
            });
        }  
        a();
    })(jQuery);
    </script>
    <?php
    }

    then you have to give the masonry ALB that class

    in reply to: open masonry gallery link in new tab #1056277

    ok – then i misunderstood you.
    You got a masonry with no lightbox. But there are custom links on some images – and these have to open in new tab.

    in reply to: open masonry gallery link in new tab #1056271

    can you link to the page/post where you have that other thread?
    if it is by using the method to add the target blank thing.

    you can do it via an if clause for that page.
    Or you give a custom class to the masonry ALB Element f.e. newtab

    and then the jquery code would be for child-theme functions.php

    function open_masonry_in_tab(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
        	$('.av-masonry.newtab .av-masonry-entry').attr('target', '_blank');
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'open_masonry_in_tab');
    in reply to: Some hints and advice to update Enfold #1056107

    the procedure above has one big advantage:
    Uploading the new theme takes a little time; if all goes well, the page will only be offline for the small amount of time that it will be renamed.

    • Update via ftp.
    • Rename the downloaded newest version to enfold-new
    • Upload that enfold-new folder to the themes folder
    • Rename your enfold folder to f.e. enfold-old
    • Rename your enfold-new folder to enfold
    • Check if all your existing settings work to your full satisfaction.
    • Yes – then stop here
    • No – delete or rename back the enfold folder back to enfold-new
    • rename the enfold-old folder back to enfold
    in reply to: header_main outside body #1056051

    There are tricks and methods to realize some things (f.e. you can have shadow only on one side of a container) , but the secrecy around live links here on board often prevents the gladly performed assistance to some topics.
    You see here a special case of boxed Content ( and this is the trickiest case you can have ) with Borders: https://webers-testseite.de/bernhard

    in reply to: Font problem #1056048

    WordPress character encoding mismatch

    The point is that wordpress (newer versions) uses utf-8 charset encoding.
    If – on different reasons this could happen – you are using on your database a different charset (latin-1 etc pp) these troubles could happen.
    this is known as the double utf-8 Encoding problematc.

    If these little changes of the wp-config file do not solve the problem – or change the problem to another one – you have to edit the tables in your database.
    there are some plugins doing this.

    https://www.tipsandtricks-hq.com/how-to-fix-the-character-encoding-problem-in-wordpress-1480

    If the code above in your wp-config.php does not do the trick allone : see here a detailed how to.
    https://theblogpress.com/blog/seeing-weird-characters-on-blog-how-to-fix-wordpress-character-encoding-latin1-to-utf8/

    On some tips in the internet the lines must be outcoded by //

    //define('DB_CHARSET', 'utf8');
    //define('DB_COLLATE', '' );
    in reply to: Text neben Logo #1055966

    ist das mit den Öffnungszeiten umfangreich – oder nur eine Zeile ?
    was ist mit Oben Rechts gemeint? Neben dem Logo oder darüber rechts außen?

    in reply to: WP Update (5.03) = Website Issues #1055956

    if you are not a fan of WordPress Gutenberg – why don’t you get rid of the whole thing by Plugin: “Classic Editor” – it disables Gutenberg on their Settings.

    in reply to: audioplayer repeats by itself #1055952

    i can not reproduce it. On may end here it does not restart if you have choosen “Stop after playing last song” on that field as you described: Loop playlist

    in reply to: How to centre images with different sizes in gallery #1055948

    but if it was possible – you have to cutoff the images. Thats what the “Perfect Grid: Display a perfect grid where each image has exactly the same size. Images get cropped/stretched if they don’t fit” does.
    But you like to distort them to show all of the image ?

    Thanks too for the positive feedback

Viewing 30 posts - 7,051 through 7,080 (of 11,481 total)