Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #931958

    Hi,

    Sorry to bother not sure what i am doing wrong.

    I would like grid layout (1 at the top, 1/2 – 1/4 and 1/4 at the bottom) formation with images as background but i can seem to make space between them. The gap would like to be small like 10px between all please.

    I have attached a clip sorry might be easier to understand.

    to look like this.
    https://s18.postimg.org/tex9gv2w9/finallay.jpg
    Thanks

    • This topic was modified 7 years, 3 months ago by brunolabi.
    #932536

    Hey brunolabi,
    Thanks for the video and screenshot, Can you please include a admin login in the private content area so we can take a closer look.

    Best regards,
    Mike

    #932955

    Included.
    Also added 4 grid row and if you can help on that too please, 10px apart.
    I have tried so much and cant seem to get it right,

    Thanks

    • This reply was modified 7 years, 3 months ago by brunolabi.
    #932997

    Hi,
    That is odd, I’m going to have to look into this more. For now I worked around it by adding ID’s to the top two color sections and this css to WordPress > Customize > Additional CSS to manage the width between the columns:

    #top #sec1 .av-flex-placeholder {
        width: 5px!important;
    max-width: 5px !important;  
    }
    #top #sec2 .av-flex-placeholder {
        width: 10px!important;
    max-width: 10px !important;  
    }
    

    Best regards,
    Mike

    #933027

    Hi,

    Thanks for that.
    Not sure maybe because the section name added sec1 but trying the code below to make the section closer to the header?

    .home #av_section_1 .content {
    padding-top: 10px !important;
    }

    Not working any ideas?

    Again thanks

    #933310

    Hi,
    To remove the padding from the first section, please try:

    #top.home #sec1 .container .content {padding: 0px !important;}

    Please adjust to suit.
    I also imagine you would like to reduce or remove the padding from the second section:

    #top.home #sec2 .container .content {padding: 20px !important;}

    Please adjust to suit.

    Best regards,
    Mike

    #933556

    Thanks for your help.

    Shall i log a new case or ask here.

    Want to make one of the grid to a link when ever you hoover over that box?

    Cheers

    • This reply was modified 7 years, 3 months ago by brunolabi.
    #933974

    Hi,
    Do you mean that when you click a box it is a link?
    Try this solution
    Or if is some action on hover, please describe a little more, but linking, (going to a new page or element) can only be done by clicking.

    Best regards,
    Mike

    #935641

    What i mean is if the mouse goes over one of the boxes to be able to add hover affect and able to be click to go to another page – for example link to a about or contact page?

    https://s17.postimg.org/4tr79n4cf/boxes.png

    Thanks

    • This reply was modified 7 years, 3 months ago by brunolabi.
    #935644

    Hi,
    How about a hover-over color change and click to another page? Can I test on your site?

    Best regards,
    Mike

    #936056

    Hi,

    Yes that is fine, could the colour be slightly transparent as well so that you can still see the details of the box?

    Thanks

    #936297

    Hi,
    I added links to your 1/4 columns by adding a unique class to each: linkabout, linkblog, linkwork, & linkservice
    I named each class as to the page they would link to.
    Then I added this function to your functions.php to make the links for each:

    add_action('wp_footer', 'link_about');
    function link_blog(){
    ?>
    <script>
    $(".linkblog").click(function() {
        window.location = "https://mrtree.000webhostapp.com/blog/";
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'link_blog');
    function link_work(){
    ?>
    <script>
    $(".linkwork").click(function() {
        window.location = "https://mrtree.000webhostapp.com/contact/";
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'link_work');
    function link_service(){
    ?>
    <script>
    $(".linkservice").click(function() {
        window.location = "https://mrtree.000webhostapp.com/service/";
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'link_service');

    So as of right now each box links to a page.
    What is left is to add the css for the hover effect, here I will give you 4 choices:
    1: this makes the image fade on hover:

    .linkabout:hover,.linkblog:hover,.linkwork:hover,.linkservice:hover {
      opacity: 0.5;
      transition: .5s ease;
    }

    2: this hides the image and allows the background color to show:

    .linkabout:hover,.linkblog:hover,.linkwork:hover,.linkservice:hover {
      background-image: none !important; 
      transition: .5s ease;
    }

    3: this applies a grayscale filter to the image:

    .linkabout:hover,.linkblog:hover,.linkwork:hover,.linkservice:hover {
      -webkit-filter: grayscale(1);
      filter: grayscale(1);
    }

    4: this applies a saturate filter to the image, this may be the best:

    .linkabout:hover,.linkblog:hover,.linkwork:hover,.linkservice:hover {
      -webkit-filter: saturate(5);
      filter: saturate(5);
    }

    Try these out and see which you like best.

    Best regards,
    Mike

    #937098

    Amazing thank you so much.
    One last thing if possible if not not to worry, can the mouse change to the hand when hoovering over?

    Again much appreciated.

    #937138

    Hi,
    Sure, just add: cursor: pointer; to your code, like this:

    .linkabout:hover,.linkblog:hover,.linkwork:hover,.linkservice:hover {
      -webkit-filter: saturate(5);
      filter: saturate(5);
      cursor: pointer !important; 
    }

    Best regards,
    Mike

    #937326

    Thanks again that worked.
    amazing work much appreciated.

    thanks
    B

    • This reply was modified 7 years, 3 months ago by brunolabi.
    #937463

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    and the video tutorials here
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Grid layout’ is closed to new replies.