Forum Replies Created

Viewing 30 posts - 7,621 through 7,650 (of 11,481 total)
  • Author
    Posts
  • in reply to: different logo #999903

    zunächst sind das ja nur beispiele – ich denke du wirst keine Seite 6, 42, oder 54 haben.
    Aber was ich oben schrieb – der fehler ist: ohne if kein elseif.
    wenn du es dahingehend änderst wird WordPress nicht mehr meckern:

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo){
        if ( is_page( array( 6, 42, 54 ) ) ) {
        	$logo = "http://www.domain.com/wp-content/uploads/logoforpage22.jpg"; 
        }
        return $logo;
    }
    in reply to: Autoplay local host video in Lightbox #999893

    on my end here it starts auto and in lightbox: http://alsafahalal.com/al-safa-revamp/

    in reply to: different logo #999889

    hast du denn einen if in deinem Code drin?
    Ein elseif macht nur sinn, wenn ein if vorhanden ist.

    in reply to: Image size for 1/2 column #999870

    When I saw your posting number, I wanted to make sure that it is not such a mistake that has happened to everyone at the beginning.

    in reply to: different logo #999865

    Du kannst es pro Seite entscheiden- wobei es für dich gut wäre die Page-id zu kennen:

    Dieses hier in die functions.php deines Child-themas:

    Es soll dir verdeutlichen wie es gehen kann mit den if clauses. – wobei du Seiten auch als array nutzen kannst
    also da zB Seite 6, 42 und 54 erhalten dann ein logo –
    du kannst alles was WordPress an conditional tags bereit hält nutzen: Link

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo){
        if( is_page(21) ) {
        	$logo = "http://www.domain.com/wp-content/uploads/logoforpage21.jpg"; 
        }
      
        elseif ( is_page( array( 6, 42, 54 ) ) ) {
        	$logo = "http://www.domain.com/wp-content/uploads/logoforpage22.jpg"; 
        }
    
        elseif ( is_page() && !is_page(1307) )  {
        	$logo = "http://www.domain.com/wp-content/uploads/logoforpage23.jpg";  
        }
        return $logo;
    }

    wenn man wiedersprüchliche Aussagen hat wie jetzt die da unten – muss man sehen ( da würden alle Seiten außer Seite 1307 das logo 23 bekommen)

    in reply to: Kundenempfehlung Link _blank-Attribut ändern #999854

    try this:

    function change_target_to_self(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
    	$('.avia-testimonial-link').attr('target', '_self'); 
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'change_target_to_self');

    and by the way the DOM is ready is not enough on that

    in reply to: Akkordeon Slider Lightboxfunktion deaktivieren #999848

    try this in quick css:

    .aviaccordion-slide-link {
        pointer-events: none !important;
    }
    in reply to: Image size for 1/2 column #999825

    And you are shure that you have choosen the right source for your image?

    ( i – as a participant can not see the link )
    click to enlarge

    on that red arrow there is by default something in it – but you can choose her a different solution for your image

    in reply to: Align formula in color section #999822

    i miss it too – on Mac OS X i got now the firefox developer edition. these tools are included and they’re a good substitute.

    in reply to: Align Grid Row Left Side to Site Box #999776

    ok – that is better to understand.

    first you had to know your general setting : default width is 1310px ( so half of it is 655px)
    if you got a container that is 50% of the total width – how many padding left you will need?
    the normal container class has a padding : 0 50px – so from inner Cell we had to diminish it.

    give those grid-rows a custom class f.e.: special-grid-row

    .special-grid-row .flex_cell.avia-builder-el-first {
        padding-left: calc(50% - 655px) !important;
    }
    
    .special-grid-row .flex_cell.avia-builder-el-first .flex_cell_inner {
        padding-left: 50px !important;
    }

    see here my construct – i got 1510px on total so my code is with 755px less
    https://webers-testseite.de/shreinmedia/

    • This reply was modified 6 years, 10 months ago by Guenni007.
    in reply to: Menu with center logo and Shrinking Header #999764

    if you are interested i will tell you how to include that “logo in the main-menu” shrinks on scrolling.
    We had to edit avia-snippet-sticky-header.js file

    in reply to: Align formula in color section #999760

    ja – deshalb schrieb ich ja :

    maybe for your setup test different calculation values (the minus px amount)

    .page-id-76763 .av-section-color-overlay-wrap .container {
        width: 100%;
        max-width: 100% !important;
    }

    deshalb sind die 100% ohne Abzug ok

    PS : be more selective on your code – this

    #av_section_1 .container {
        max-width: 100% !important;
        padding: 0 40px;
    }

    is for all first color-sections on your whole site
    you can see it on “Dozenten” Site etc.

    • This reply was modified 6 years, 10 months ago by Guenni007.
    in reply to: Open video links in lightbox with image hotspot element #999523

    on this case you had to change to click event and not on hover tooltip.
    This is set in avia-modal.js in line 903ff

    /*highlight the modal sub el when hotspot is hovered*/
       				_self.hotspot_container.on('mouseenter', '.av-image-hotspot', function()
       				{
       					var el = $(this).data('modal_sub_el');
       					if(el) el.addClass('av-highlight-subel');
       				});

    maybe than it would be possible to have a link in the tooltip window opening on lightbox.
    The problem then would be that the tooltip is itself a “popup-window” – but you like to open it in a new lightbox window.

    in reply to: Menu with center logo and Shrinking Header #999398

    it is a bit more complicate than you think.
    I did it in a test environment – not as you did – with shifting the logo image to the navigation.
    My logo here is a custom link in menu. – and the logo itself is only visible in mobile case:

    https://webers-testseite.de/weber/

    additionally there was an edit needed of shrink script

    in reply to: Align formula in color section #999378

    try this in quick css:

    .page-id-76763 .av-section-color-overlay-wrap .container {
        width: 100%;
        max-width: calc(100% - 100px) !important;
    }

    maybe for your setup test different calculation values (the minus px amount)

    • This reply was modified 6 years, 10 months ago by Guenni007.
    in reply to: Open video links in lightbox with image hotspot element #999351

    hm – you can see my test-page above. there is the hot-spot and it works – this way.
    and even more – the side navigation works on lightbox too ! switching between the videos in the lightbox

    https://webers-testseite.de/image-with-hotspost-linking-to-youtube-in-iframes/

    in reply to: Fix icon list showing bullet points #999294

    aha – is the source code above new in your thread on top?

    why do you need a column in a column? on this page?
    if you can not live with this setting (on top 1/1) underneath (2/5 – 1/5 – 2/5) : https://webers-testseite.de/liste/

    if you like to nest columns there is a better way to do it in enfold.
    the only thing we had to manage is that a grid-row is not full-width ! and here we go. the setup f.e.:
    (click to enlarge)

    so the added custom class will do the rest with this in functions.php of your child-theme
    adjust the settings (max-width) in the code to your settings of enfold : Enfold – General Layout – Dimensions

    // Grid-Row Alb not fullwidth
    function grid_layout_notfull(){
    ?>
    <script>
    (function($){
    		$('.av-layout-grid-container.grid-notfull' ).wrap( '<div class="main_color notfullsize"></div>');
    		$('.notfullsize').css({"clear": "both", "width": "100%" , "float": "left" , "position": "static" , "min-height": "100px" });
    		$('.grid-notfull').css({"max-width": "1310px", "margin": "0 auto" , "padding": "0 50px"});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'grid_layout_notfull');

    Such a structured page could then look like this ( only if you have no sidebar on that page – otherwise the sidebar will be under the lowest grid-row or color-section) : https://webers-testseite.de/nesting-columns/

    in reply to: Fix icon list showing bullet points #999290

    on default there will be on grid.css :

    .avia-icon-list li {
        margin: 0;
        padding: 0 0 30px 0;
       list-style-type: none;
        list-style-position: outside;
        clear: both;
        position: relative;
        min-height: 60px;
    }

    you have in the source code some line-breaks <br> remove them – these are start points as if there was a new listpoint !

    in reply to: Custom CSS Class #999247

    and by the way i mentioned that custom class input field because of your sentence:

    Then I edited a text block on a page, and created a custom field named “textblock-black-background”.

    in reply to: Custom CSS Class #999235

    yes that is why i said the surrounding container.
    if you want to use it like a textmarker you can use your code – but you have to be carefull. If classes belong to one element they are not separated by a space! Just one after the other ( and order is also important to preserve) so your code:

    .avia_textblock.text-black-background {
        background-color: #000;
    }

    first try without important – the reason why i take the hex code is to save bytes ;) #000 ist shorter than black :lol

    in reply to: Custom CSS Class #999229

    And by the way – you do not need this to realize your project; On that ALB Textblock Element you have that settings dialog for text color. And on the surrounding column (1/1, 1/2, etc) you have a similar settings dialog for background-color:

    in reply to: Custom CSS Class #999222

    these custom classes are not set in the custom fields. These custom classes are only setable if you are working with the advanced layout builder ( shortend as ALB).
    When you have your text-block element from Enfold ALB – open that element

    Under the inputfiled for the text there is now an input field for Custom Css Class

    in reply to: What's the best way to do this? #999130

    thanks for feedback

    in reply to: Open video links in lightbox with image hotspot element #999090

    set the link of the hotspot as manually link.

    see here. https://webers-testseite.de/image-with-hotspost-linking-to-youtube-in-iframes/

    link for example with youtube options and at the end with iframe=true:

    https://www.youtube.com/watch?v=38cMOweKcxM?autoplay=1&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3&iframe=true
    
    in reply to: Align Grid Row Left Side to Site Box #999075

    can you sketch what you want to do?
    something like this: https://webers-testseite.de/grid-row-2/

    in reply to: What's the best way to do this? #999015

    It would have been nice to get an answer not only from mods here!
    I’m really thinking about not actively standing up for other issues any more. If I should have another problem of my own, then I always find competent contacts in the mods here – and the rest doesn’t interest me anymore. Frankly – dear co-users of Enfold – is it so difficult to give feedback on an answer?

    in reply to: Align Grid Row Left Side to Site Box #999013

    both elements ( color-section and grid-row) are full-width elements.
    I miss this too – an element that can be a container for other elements and can have the sidebar besides.
    That would be a great thing.
    Espacially the grid-row will be nice to have this behavior – because as you can see at his consturct – ( Link ) – that it would be a very fleible way to layout things.

    in reply to: Enfold; Socket – enable URL links? #998735

    if you don’t like to make it manually – you can change the backlink by this code-snippet in your function.php of your child theme

    you have to adjust your data

    function new_nolink(){
    $kriesi_at_backlink = "<a href='https://webers-webdesign.de'>Webers WordPress Webdesign</a>";
    return $kriesi_at_backlink;
    }
    add_filter("kriesi_backlink","new_nolink");
    in reply to: Changing the caption title on fullwidth easy slider to H1 #998732

    there are more than one method.
    As Ismael said – just edit the alb element ( line 545 – of av-helper-slideshow.php – don’t forget to replace opening and closing tag) upload that edited element to child-theme/shortcodes folder and do this to
    functions.php of your child-theme:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }

    ______________

    you can as an alternative do this to your child-theme functions.php :

    function replace_tags_with_tags(){
    ?>
    <script>
      (function($) {       
          function replaceElementTag(targetSelector, newTagString) {
            $(targetSelector).each(function(){
              var newElem = $(newTagString, {html: $(this).html()});
              $.each(this.attributes, function() {
                newElem.attr(this.name, this.value);
              });
              $(this).replaceWith(newElem);
            });
          }
        
          replaceElementTag('.slideshow_caption h2.avia-caption-title', '<h1></h1>');
        
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');

    this code preserves all attributes of the original h2 tag and replaced it with h1
    (if you like to be more specific you must select more specific f.e. including here the page-id or having a custom class on heading)

    __________

    alternative Method – and for me it is the best – take my edited ALB Element for that – then you have on each slider the option to choose the heading tag :
    read here: https://webers-testseite.de/edited-enfold-alb-elements/

    read carefully – you have to upload all 4 files in this case because the av-helper-slideshow.php is ruling 3 sliders:
    https://webers-testseite.de/edited-enfold-alb-elements/#sliders

    One disadvantage : If there are major updates you will have to download those edited files again if – there are something changed completely. then there will be a little time shift. (few days)
    The link of the page above will get allways the newest versions of those files.

    • This reply was modified 6 years, 10 months ago by Guenni007.
    in reply to: Script killing site – we need this for compliance #998729

    hey Dude – I can’t understand why it should work there (see link above) either.

    to be shure that you have no curly exclamation mark issues on that can you please try this by copy&paste in your text :

    <script src="https://www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-2810512121&data-host=www.cqc.org.uk&type=location" type="text/javascript"></script>
    

    check if you have different plugins on those pages – and first try to test if there is a conflict by deactivating those.

    • This reply was modified 6 years, 10 months ago by Guenni007.
Viewing 30 posts - 7,621 through 7,650 (of 11,481 total)