Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #808989

    Hi,
    ich möchte auf einer Seite das Fullwidth Sub Menu und mehrere Fullscreen Slider untereinader kombinieren.
    Die Fullscreen-Slider sollen alle eine ID bekommen, damit ich im Fullwidth Sub Menu Anker vergeben kann.
    Habe dazu diesen Eintrag gefunden
    https://kriesi.at/support/topic/create-custom-div-id-field-for-all-avia-layout-builder-elements/#post-584257

    Das hier macht ungewollte Abstände zwischen den Slidern
    <div id="my-custom-id"></div>

    Und das hier hat irgendwie keine Auswirkungen.

    function avia_custom_element_id(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('.your-custom-class').attr('id','your-custom-id');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'avia_custom_element_id');

    Also ein Feld für Custom CSS Class wird angezeigt, aber kein neues Feld Custom CSS ID
    Hier man komplette functions.php. Ist da alles richtig?

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    
    //add custom class for alb
    add_theme_support('avia_template_builder_custom_css');
    
    function avia_custom_element_id(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('.your-custom-class').attr('id','your-custom-id');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'avia_custom_element_id');
    • This topic was modified 7 years, 5 months ago by tl_s180.
    #809991

    Hey tl_s180,

    Our German Support is assigned to the ticket, but if you need faster support, please do provide us with details in English, so we can help you out

    Best regards,
    Basilis

    #811581
    #811588

    Hi,

    I replied you here – https://kriesi.at/support/topic/custom-id-for-fullscreen-slider-alle-alb-elements/
    Let us continue there :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Custom ID für Fullscreen Slider’ is closed to new replies.