Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1298792

    Hello dear support team,
    I have 12 1/4 columns at the bottom of a website with anchor links to products in the page.
    Problem 1
    I have set a column link in each case, but it doesn’t work.
    I have now also added an anchor link to the pictures, they work. But that’s not what I want. How can we get the column links working?
    Problem 2
    It is set to switch limit full width at 767px. That does not work either.
    At about 875px width, columns 3 and 4 slide under 1 and 2 and there is a white area on the right. At approx. 635px all 1/4 columns are next to each other again.
    I would like to have 2 columns next to each other under 767px, i.e. 1/2 and 1/2. How can we do that?

    I also tried your solution from the documentation. Without success. Columns with class col-25p
    @media only screen and (max-width: 767px) {
    .col-25p {
    width: 49%! important;
    background: gold;
    }
    .col-25p.av_one_fourth {
    margin-left: 1%! important;
    }}

    I look forward to your support

    Daniela

    Deutsch:
    Hallo liebes Support-Team,
    ich habe auf einer Webseite im unteren Bereich 12 1/4 Columns mit Anker-Links zu Produkten in der Seite.
    Problem 1
    Ich habe jeweils einen Spalten-Link gesetzt, der funktioniert aber nicht.
    Ich habe jetzt zusätzlich einen Anker-Link auf die Bilder gesetzt, diese funktionieren. Das ist aber nicht das, was ich möchte. Wie können wir die Spalten-Links zum laufen bringen?

    Problem 2
    Es ist eingestellt, Umschaltgrenze volle Breite bei 767px. Das funktioniert auch nicht.
    Bei ca.875px Breite rutschen die Spalten 3 und 4 unter 1 und 2 und rechts ist ein weißer Bereich. Bei ca. 635px sind wieder alle 1/4 Spalten nebeneinander.
    Ich möchte gern, daß unter 767px jeweils 2 Spalten nebeneinander sind, also 1/2 und 1/2. Wie können wir das hinbekommen?

    Ich habe auch schön Ihre Lösung aus der Dokumentation probiert. Ohne Erfolg. Spalten mit class col-25p
    @media only screen and (max-width:767px) {
    .col-25p {
    width:49%!important;
    background:gold;
    }
    .col-25p.av_one_fourth{
    margin-left:1%!important;
    }}

    Ich freue mich auf Ihre Unterstützung

    Daniela

    #1299139

    Hi Daniela,

    Could you try updating the theme to the latest version (4.8.2) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. If not, then please post admin WordPress login details in private, so that we can have a closer look at your site.

    Best regards,
    Rikard

    #1302416

    Sorry for not getting in touch until now. I updated the theme to the latest version.
    Problem 1: The column links are not working yet
    Problem 2: Here I found the following: I have 12 1/4 columns and wanted the spacing of the columns
    adjust evenly. The space to bottom was 10px and the to the side was about 73px.
    I added the following code to match:

    #top.page-id-13 .av_one_fourth {
    width: 24% !important;
    margin-left: 1% !important;
    }
    #top.page-id-13 div .first {
    margin-left: 0!important;
    }

    This code worked but caused the error.
    I removed the code again and now I have 2 columns next to each other under 767px. That fits.
    But I would like to have the same distances.
    How can I adjust the spacing to the side and bottom of the 12 1/4 columns. They should all be like the distance below (small space).

    #1302977

    Hi,
    Thank you for your patience and for the login to your site, for the column link issue the links didn’t work because they included hashtags that indicated the anchor links and they were on the homepage, the column links would work if both of these were not true because column links are not real links, they are faked with javascript, anyways I found that by modifying the /js/shortcodes.js file I can create a workaround for you.
    So I modified line 660 from this: if( (0 == url.indexOf("#")) || ((url.indexOf(link) >= 0) && (url.indexOf("#") > 0) ) )
    2021-05-29_144545.jpg
    to this: if( (0 == url.indexOf("#")) )
    2021-05-29_145341.jpg
    and this seems to work correctly now, please clear your browser cache and check.

    Best regards,
    Mike

    #1303150

    Hi Mike,
    Thank you for your help. I´m Happy.
    It seems to be working. How can I integrate this change in the child theme so that it remains in the event of an update?

    Could you please help me with the second problem. I need to adjust the spacing evenly. The customer wants it that way. It would also be good for me to know, because I have 27 licenses from Enfold and other customers might want to have it that way too.

    Here is my problem again:
    I have 12 1/4 columns and wanted the spacing of the columns adjust evenly. The space to bottom was 10px and the to the side was about 73px. I added the following code to match:
    #top.page-id-13 .av_one_fourth {
    width: 24% !important;
    margin-left: 1% !important;
    }
    #top.page-id-13 div .first {
    margin-left: 0!important;
    }
    This code worked but caused a error with column size in tablet and mobile
    I removed the code again and now I have 2 columns next to each other under 767px. That fits.
    But I would like to have the same distances.
    How can I adjust the spacing to the side and bottom of the 12 1/4 columns. They should all be like the distance below (small space).

    Thank you very much for the support

    Regards
    Daniela

    #1303407

    Hi,
    To add the modified shortcodes.js to your child theme you can create a js folder in your child theme and paste in your modified shortcodes.js file there, then on functions.php of your child theme add this code:

    function change_aviajs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 3, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );

    For your 12 1/4 columns spacing please try this css:

    .responsive #top.page-id-13 #wrap_all .flex_column.av_one_fourth {
        margin-top: 1% !important;
        margin-left: 1% !important;
        margin-bottom: 0 !important;
    }

    I noted there was an issue with your second and third items at tablet size that was making those two columns much smaller than all of the others, I cloned the first two items and this seemed to have solved it enough that I could figure out the css for the spacing, but now you have 14 items and not 12, please review if you have any other rouge css affecting these or try creating a test page with the 12 1/4 columns and no custom classes so we can investigate, otherwise if you plan on adding more products anyways then just adjust the two additional products.

    Best regards,
    Mike

    #1303633

    Hi Mike,
    many thanks.
    I have adjusted the 12 1/4 columns and the content is correct again.
    Have tested your code for the spacing.
    The view mobile up to 960px is correct. Perfect :o)
    From approx. 960px the whole content area is not used and on the right there is a white area – The columns in the footer behave the same way.
    Do we get that corrected?

    Best regards,
    Daniela

    #1303760

    Hi,
    Thank you for the feedback, at 960px the section is still showing 2 columns, the break to 4 columns as shown in your screenshot occurs at 989px, then at that point the column width is 20.5% to account for the original margin spacing, so to correct this I recommend changing the column width to 23.5% with this css:

    @media only screen and (min-width: 989px) { 
    .responsive #top.page-id-13 #wrap_all .flex_column.av_one_fourth {
    	width: 23.5% !important;
    }
    }

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

    Best regards,
    Mike

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