
-
AuthorPosts
-
March 23, 2018 at 1:20 pm #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.
March 25, 2018 at 3:52 am #932536Hey 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,
MikeMarch 26, 2018 at 11:41 am #932955Included.
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.
March 26, 2018 at 2:00 pm #932997Hi,
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,
MikeMarch 26, 2018 at 3:02 pm #933027Hi,
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
March 27, 2018 at 3:51 am #933310Hi,
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,
MikeMarch 27, 2018 at 10:46 am #933556Thanks 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.
March 28, 2018 at 2:22 am #933974Hi,
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,
MikeMarch 31, 2018 at 10:35 pm #935641What 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.
March 31, 2018 at 11:02 pm #935644Hi,
How about a hover-over color change and click to another page? Can I test on your site?Best regards,
MikeApril 2, 2018 at 1:15 pm #936056Hi,
Yes that is fine, could the colour be slightly transparent as well so that you can still see the details of the box?
Thanks
April 3, 2018 at 5:16 am #936297Hi,
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,
MikeApril 4, 2018 at 12:08 pm #937098Amazing 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.
April 4, 2018 at 1:44 pm #937138Hi,
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,
MikeApril 4, 2018 at 5:37 pm #937326Thanks again that worked.
amazing work much appreciated.thanks
B-
This reply was modified 7 years, 3 months ago by
brunolabi.
April 5, 2018 at 5:47 am #937463Hi,
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 -
This topic was modified 7 years, 3 months ago by
-
AuthorPosts
- The topic ‘Grid layout’ is closed to new replies.