Tagged: class, tab section
-
AuthorPosts
-
October 2, 2017 at 2:00 pm #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, 2 months ago by TribHUN.
October 3, 2017 at 6:12 am #859476Hey 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,
RikardOctober 3, 2017 at 10:13 am #859554Hey
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.
October 3, 2017 at 10:49 am #859577alltough 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-tabso 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);
October 3, 2017 at 11:00 am #859581Guenni007, Perfect! Thank you very much, just the thing I was looking for! Works perfectly!
Thank you!
October 4, 2017 at 8:02 am #859963Hi,
Great, glad you got it working and thanks to @guenni007 for helping out :-)
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.