Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #859229

    Hey

    It may be a little weird, but can someone delete something from the Class section?

    I have a responsive problem with a TAB section, as you make the browser smaller, the content overfloats to the next Tab, it is really annoying, couldn’t find the solution, tried a bunch of CSS, and after a few hourse I gave up and I tried disabling one-by-one commands in the page code (browser and right click to see the codes)

    Found something, all I had to do was to delete the “fullsize” part of this class, and sudenly, everything worked perfect.
    class="av-tab-section-container entry-content-wrapper main_color av-tab-slide-transition av-tab-content-auto av-tab-above-content avia-builder-el-0 avia-builder-el-no-sibling mitglied_tab container_wrap fullsize"
    (you know, its the DIV, ID and Class section, and the last “fullsize” part is the problem)

    So question again:
    Can I delete somehow the fullsize part from this TAB Section class? Is it possible with CSS or need a Jquerry?

    THX

    • This topic was modified 7 years, 1 month ago by TribHUN.
    #859476

    Hey TribHUN,

    Thanks for that, so we need to be logged in to be able to see the problem? If so then please post admin login details in private.

    Best regards,
    Rikard

    #859554

    Hey

    I don’t think you need a log-in, I just need a short code in the function.php with a removeClass command

    Like IF PageID=xxx, then removeClass (“fullsize”)

    No Idea how to do that.

    #859577

    alltough i do not see your site – it might be the best way this could be your code her (dont know if document ready function is needed)
    maybe you can use your own class: mitglied-tab

    so here is my code for your functions.php of your child-theme

    insert your page id:

    function my_fixed_tab() {
    if( is_page(600) ) {
    ?>
     <script type="text/javascript">
    	jQuery(document).ready(function() {  
             jQuery( ".mitglied_tab" ).removeClass( "fullsize" ) 
         });
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'my_fixed_tab', 20);
    #859581

    Guenni007, Perfect! Thank you very much, just the thing I was looking for! Works perfectly!

    Thank you!

    #859963

    Hi,

    Great, glad you got it working and thanks to @guenni007 for helping out :-)

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.