Viewing 30 posts - 1 through 30 (of 35 total)
  • Author
    Posts
  • #1343031

    Hi,
    I would like in the first tab of the section tab the last image to be full screen wide.
    Now I have inserted a column with the image in the background, but it is not full screen.
    How can I do this?
    I attach an image of what I would like to do: https://monosnap.com/file/undefined
    Thanks for the support.

    #1343046

    .

    • This reply was modified 2 years, 9 months ago by famarinu.
    #1343080

    Hi famarinu,

    Thanks for giving us admin access.
    It’s not possible with the current setup, the only workaround that I think should work is to have those image on the bottom to be placed outside of the Tab Section and put it inside a Grid Row, then maybe add a Custom ID to it, then add a few javascript codes.
    Can you give us FTP access? so we can try to add some js codes.

    Best regards,
    Nikko

    #1343178
    This reply has been marked as private.
    #1343317

    Hi,
    Thanks for your patience and the login, I believe that you want the column at the bottom of tab one, with the image and button to be full-width and only show when tab one is active
    To test I created a new test page, linked below, and moved the column outside of the tab section, then I added this css to your child theme stylesheet:

    #top.page-id-13305 #after_tab_section_1 > .container {
        max-width: 2500px;
        padding: 0;
    }

    and this script to your child theme functions.php

    function custom_script() { ?>
        <script>
    (function($){
    	setTimeout(function(){
        if ($('#top.page-id-13305 #av-tab-section-1 .av-tab-section-tab-title-container').children('a[aria-controls="av-tab-section-1-1"].av-active-tab-title').length === 0) {
        	$('#top.page-id-13305 #after_tab_section_1').css({"display": "none"});
        }
    	},500);
    	 $('#top.page-id-13305 #av-tab-section-1 a.av-section-tab-title').on('click', function() {
    	 	setTimeout(function(){
    	 	if ($('#top.page-id-13305 #av-tab-section-1 .av-tab-section-tab-title-container').children('a[aria-controls="av-tab-section-1-1"].av-active-tab-title').length > 0) {
        	$('#top.page-id-13305 #after_tab_section_1').css({"display": "block"});
        } else {
        	$('#top.page-id-13305 #after_tab_section_1').css({"display": "none"});
        }	
    	 	},500);
    	 });
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    both of wich will only work on the test page page-id-13305
    please clear your browser cache and check if this helps.

    Best regards,
    Mike

    #1343376

    HI,
    thank you for your answer.
    How you can see in the screenshot: https://monosnap.com/file/0tX0dzSvPJTvg3Jtie9xzIGcRWSqZI
    I don’t see the image full width. Is it my problem?

    #1343387

    Hi,
    Please try clearing your browser cache following these steps for Safari and note step 4 where you will Clear the History.
    It is showing full width for me, please see the screenshot in the Private Content area.

    Best regards,
    Mike

    #1343586

    Sorry, Mike, I cleared the cache and now I see the image at full width.
    But that’s not what I want.
    Because these full-width-images will not always be in the page footer, they may even be in the middle of the page/tab.
    For example, if you see in tab two “our method” the image that should be full screen is in the middle of the page ( https://monosnap.com/file/VuoCsJBEBnPPRYnyozExjgXR4aXQ4e )
    How do I do in this case?
    Thank you for your support,
    Manuela

    #1343628

    Hi,
    If the images that you want full-width must be inside the tab section, then you would need to make the whole tab section full width, please clear your browser cache and check the test page below.
    Now if you want the text areas “boxed” like before we can set a max-width for them, but for the 8 columns they can not be nested inside another column so we would need to convert them into shortcode and place them inside a code block, but since you are not done editing them yet it probably would not be easy for you in the future.
    So the option is to use the whole tab section full width like on the test page below (clear your cache) or finish your image columns so they can be converted into shortcode for a code block section.

    Best regards,
    Mike

    #1343664

    Hi Mike,
    I cleared the cache, but maybe something went wrong.
    Is all shifted to the right and the text is not well readable. Here: https://monosnap.com/file/GIoyavumExqtQBqsI6utqnqRhrLfTC is what I see.
    Be warned, I had the page open from earlier and saved it. I think I deleted your changes, SORRY.
    Thank you for your support,
    Manuela

    #1343835

    Hi,
    Thanks, I’m not sure what happened but I saved the page again and now it is full width again. Please clear your browser cache and check.

    Best regards,
    Mike

    #1343849

    Hi Mike,
    Yes now it works, thank you.
    Mike, I didn’t understand this part:
    “but for the 8 columns, they can not be nested inside another column so we would need to convert them into shortcode and place them inside a code block.”
    Do you mean that I have to: “the parts that are not full-width put into a code block as a shortcode”? Which of course I can only do when the whole page is complete.
    But how do we give it the size of the box?
    If you want to try it, tab 3 “Our story” is complete and all goes into box nothing at full width.
    Thank you for your support,
    Manuela

    #1343927

    Hi,
    For example, I took the shortcode of the contains of tab 3 and placed it in a code block element with the custom class inner-tab-section-width and added this css to your child theme stylesheet.

    #top.page-id-13305 #full_width_tab_section .inner-tab-section-width {
        max-width: 1200px;
        margin: auto;
    }

    Please clear your browser cache and check.
    You can use the same custom class inner-tab-section-width for all of your tabs contents that you want to be “boxed”

    Best regards,
    Mike

    #1343974

    Oh yes, that’s great!
    Trank you Mike.
    Once I finish the content in the other tabs as well then I will create the short code and put it in the “code block”.
    Thank you so much for help me in this part.
    Manuela

    #1343989

    Hi,
    Glad to help, shall we close this then?

    Best regards,
    Mike

    #1344034

    Hi Mike,
    If it’s possible I would leave it open until I finished the page.
    Because inside the tabs I will have to insert collumns and according.
    And I could use your help again.
    Thank you for your support.
    Manuela

    #1344042

    Hi Mike, sorry..
    Exactly as I said.
    I have to insert an according in which it contains columns.

    I have created the templates
    AccordionMethod and LEAMETHOD to facilitate the creation of the shortcode

    Here a screen: https://monosnap.com/file/kDbXJ9eRW6ap83YxjndRKy80IayyXr

    The correct output should be a 3 colunms.
    I add this class in quick CSS:
    .inner-colum-3{
    margin-left: 6%;
    width: 29.333333333333332% !important;
    }
    But the code not works.
    Thank you for your help.

    Manuela

    #1344077

    Hi,
    Your class is targeting the inner column, but you really want to target the outer column, try this css:

    #top.page-id-13305 #av-tab-section-1-2 .sc-av_one_third {
    margin-left: 3%;
    width: 29.333333333333332% !important;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1344737

    Sorry again Mike.
    I was making content changes to the page and the images that were supposed to be full screen came back in “boxes” again
    I checked all the code in “Quick CSS”, in the style.css file and in function.php and everything is as before.
    I don’t understand why everything is back to the basics.
    First tab: https://monosnap.com/file/veVhAa5cziSWhYGh15NT8ruTt6Pc95
    Second tab: https://monosnap.com/file/GsrTO0QhUwudRmRA0hm3xH8xWO0K8W

    Thank you for your help

    #1344865

    Hi,
    I’m not sure what was changed but I adjusted the css to this:

    #top.page-id-13305 #full_width_tab_section .av-layout-tab > .av-layout-tab-inner > .container {
        max-width: 2500px;
        padding: 0;
    }

    and now the full width images are full width again, but you will still need to change the image columns and shortcode to a code block to set the “boxed” width as we talked about earlier.

    Best regards,
    Mike

    #1344870

    Thank you very much Mike.
    I recommend closing the tread only when I have completed the page.
    Thank you for your constantly support,
    Manuela

    #1345973

    Hi,
    how do I insert 4 columns with images in the box and not full width?
    In this image as it should come ( https://monosnap.com/file/7W77qsbGGBeoWWuSXcoxMRsLizEeqp )
    I tried to insert the code of the images ( https://leagrowingpeople.com/all-coach-lea/ ) in a “Code block” and inserted the class: “inner-tab-section-width” but it doesn’t work.
    The page is always the same https://leagrowingpeople.com/all-coach-lea/
    Thank you,
    Manuela

    #1346006

    Hi,
    Thanks for the screenshots and example, the issue was that all of the columns were in a color section, in this case the columns need to be inside the code block as the wrapping div and not nested.
    I corrected it for you, please clear your browser cache and check.

    Best regards,
    Mike

    #1346022

    Hi Mike,
    oh sure I hadn’t thought about that.
    Thanks, very kind as always
    Manuela

    #1346097

    Hi,
    Very good, this thread is getting quite long, shall we close this then?

    Best regards,
    Mike

    #1346751

    Sorry Mike, I can’t close this thread yet. Every time I insert a small new part something doesn’t work.
    Now I should add the team photos in the first tab. If I insert the first two I have no problem with the accordion I have in the second tab.
    As you can see in image 1a ( https://monosnap.com/file/DQI8Fd6RSESLfEAD1sBbWhvUVqgqYV ) and 1b ( https://monosnap.com/file/FfPvpQK13VhDWbPEELEw823bBfnGcn )
    But if I insert more than two people in the first tab, in the second tab I will have a problem with columns, as you can see in image 2a (https://monosnap.com/file/N1XT4m11KFYjWPnngnxyvFYGo9tpxj ) and 2b ( https://monosnap.com/file/hKlEmZo0lrs8x1ZcumAZeOaCgyzRr8).

    The problem is in the second tab that the columns inside the accordion lose their formatting as you can see in image 2b .

    Because? How can I solve the problem?

    Thank you for your support,
    Manuela

    #1347019

    Hi,
    I couldn’t find the page you took the screenshots from so I tried adding the elements to the test page and it seems to work well, please check.
    This element really wasn’t designed to work with the layout that you are trying to achieve, as you recall at the beginning of this thread we wrote a script to try to achieve this, but since you are having such trouble with this, perhaps a different layout is in order?

    Best regards,
    Mike

    #1348216

    Hi Mike,
    I would like to have the full screen capability on the live page of the site and not on the test page.
    I looked for the function that you kindly wrote me in the post of “March 6, 2022 at 2:49 am” but I do not understand why but it is not there in the file “functions.php” of the child theme. Absurd!!!
    But everything on the test pages seems to work.

    The ID of the live page is 1239:
    https://leagrowingpeople.com/who-we-are/ Not finding your function in the file “function.php”, I thought to copy it and change the page ID with the live page. But it doesn’t work.

    Thanks for the continued support and hope to finish this page soon.

    #1348229

    for your starting topic :
    why don’t you use a full-width slider with one slide – without captions.
    Big advantage – it is responsive by default.

    #1348230

    Hi,
    It looks like you forgot to add the custom class full_width_tab_section to the tab section, so that solves the full-width images, but you need to add your “team” grid in a code block element like on the test page so they are not full width.

    Best regards,
    Mike

Viewing 30 posts - 1 through 30 (of 35 total)
  • The topic ‘section full width’ is closed to new replies.