Tagged: x
-
AuthorPosts
-
May 24, 2016 at 4:40 am #1006894
TheoryUnitParticipantHi there,
Is there a way to set the “mtn” class to remove the space above all h1 headings (in fact, all heading levels) across the whole site? My client will eventually build his own pages and I was thinking it would be easier for him to not have to set the class individually each time.
Thanks,
Matt(URL: thatchinginfo.com)
May 24, 2016 at 5:26 am #1006949
ChristianModeratorHey Matt,
Please add the code below in your Appearance > Customize > Custom > CSS.
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 { margin-top: 0 !important; }Hope that helps. 🙂
May 24, 2016 at 7:35 am #1007121
TheoryUnitParticipantHi there — thanks very much — should have worked that one out shouldn’t I?!
Thanks for your help as ever.
MattMay 24, 2016 at 7:50 am #1007152
JoaoModeratorYou are welcome Matt
Let us know if you need help with anything else.
Joao
May 24, 2016 at 8:22 am #1007217
TheoryUnitParticipantThanks Joao.
Actually, can I ask another question please?
I’m trying to move a line of text up closer to the bottom of an image on this page: http://thatchinginfo.com/beginners-guide/It’s the first image and there’s a description underneath that I want to move up. I’ve added this so far, to the customiser:
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 { margin-top: 0 !important; } img { margin-bottom:0 !important; vertical-align: bottom !important; }Your help greatly appreciated.
Thanks,
MattMay 24, 2016 at 8:23 am #1007219
TheoryUnitParticipantShould have said, the line of text is in h6 tags
May 24, 2016 at 8:44 am #1007257
JoaoModeratorHi There
Please try adding:
margin-bottom: -12px;to your image Style Box in Cornerstone.
Please see img attached.
Hope that helps,
Joao
May 24, 2016 at 9:45 am #1007361
TheoryUnitParticipantHi Joao,
I don’t have a separate Style Box for the image as it’s inserted with text into a larger content band. I tried this (but it didn’t work):
I added a class to customiser:
.minmarg {margin-bottom: -15px;}Then added the class to the inline code:
<img class="minmarg aligncenter size-full wp-image-30" src="http://thatchinginfo.com/wp-content/uploads/2016/05/background-homepage-2.jpg" alt="background homepage (2)" width="800" height="590"/>I want to make it as easy as possible for when the client takes over, so I was really after a global change if possible?
Thanks again.
MattMay 24, 2016 at 10:24 am #1007431
ChristianModeratorHey Matt,
You can’t apply a bottom margin to the image because WordPress automatically wraps it with
<p></p>. What we can do instead is apply a negative top margin (margin-top: -20px !important;) to your h6 (see attachments). You can also make a class out of that like:.ntm { margin-top: -20px !important; }Hope that helps. 🙂
May 24, 2016 at 11:20 am #1007537
TheoryUnitParticipantHi Christian,
Thanks for your reply.
So I put that class code into customiser, then the ntm class into the h6 code like this:
<h6 class="ntm"><em>Three ends… From left to right. A full hipped end at 45 degrees. A half hipped end at 50 degrees. And a full gabled end at 55 degrees. It is noticeable how much longer the roofs get, as the roof pitch increases. Water is shed more efficiently; but at the cost of a bigger roof to thatch and pay for. Ten degrees of extra pitch, creates around twenty per cent more roof. </em>2b1 2</h6>But it didn’t change the margin — any ideas?
Thanks,
MattMay 24, 2016 at 11:22 am #1007541
TheoryUnitParticipantScratch that, it does work now I’ve taken out another reference to the margin for h6!
Thanks again.
MattMay 24, 2016 at 11:59 am #1007603
RupokMemberYou are welcome Matt!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1006894 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
