Home › Forums › Automattic › Forefront › BUTTON IS NOT APPEARING
-
AuthorPosts
-
thecharmepidemicMemberHi, I have just changed my featured image in my front page and button has disappeared. I am using this code as always:
But nothing is appearing on my featured image…
Have you got any suggestions what to do?thanks:)
The blog I need help with is thecharmepidemic.comAugust 26, 2013 at 10:16 am #138923
thecharmepidemicMemberthe code I am using is :
<.a class=”button” href=”http://forefrontdemo.wordpress.com”>Button Text Here
(without dot after < )
August 26, 2013 at 1:37 pm #138926
thecharmepidemicMemberI have now tried many different things, so button appears, but just in grey words. How to do it to look like an actual button? It can be black with white letters. Could you help me with that?
I also wanted to move button around.. but unsuccessfully.
I was using this code:
.front-page.-content-area .with-featured-image .entry-content .button {
position: absolute;
right: 200px;
bottom: 200px;
}
Without dot after page
It’s not working..
Thank you. looking forward to hear from u. :)
September 2, 2013 at 9:58 am #139291
thecharmepidemicMemberHi again,
Could you please help me with this as it is on the front page and it really does affect my blog in negative way :(
Thank you so much.
September 4, 2013 at 7:10 pm #139535
Kathryn P.Happiness EngineerHi there – sorry this question slipped through the cracks.
To help me locate your button, would you mind giving me a link to the post or page where it is so I can have a look, since I’m not quite sure where to find it? Thanks!
September 5, 2013 at 8:11 am #139582
thecharmepidemicMemberHi
It’s on the front page http://thecharmepidemic.com/ .. It’s hard to find it as it doesn’t even look like a button. Where you see big THE CHARM EPIDEMIC at the beginning of the word there is MEET ME AT (this is how my button looks like now…)
Is it possible to make it look like a proper button again, with those round corners and so on?
When you press MEET ME AT it goes to my blog.
I am looking forward to hearing from you. Thanks :)
September 5, 2013 at 2:27 pm #139593
Kathryn P.Happiness EngineerAh, I see it!
The first thing you need to do is give your button a class, and then we’ll be able to style it with CSS. So let’s change this:
<a title="BLOG" href="http://wp.me/P3Ckg5-gm">MEET ME AT</a>
to:
<a title="BLOG" href="http://wp.me/P3Ckg5-gm" target="_blank" class="homebut">MEET ME AT</a>
This gives your button the class “homebut” – I went ahead and did that part for you.
First, you probably want to push the button down so it doesn’t overlap the text on your header graphic.
You can do that by adding 150 pixels of space to the top of the post in which the button is contained. Of course you can adjust the amount of pixels as you like, if you want more space or less. This is what that looks like in CSS:
#post-1012 {
margin-top: 250px;
}To style the button, it depends on what you want the button to look like. For a black background with white letters and rounded borders, try this:
.homebut {
background-color: #000000;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
color: #FFFFFF ! important;
font-weight: bold;
padding: 10px;
}This is a good little tutorial on making buttons with CSS: http://www.htmlgoodies.com/beyond/css/article.php/3891201/Making-Rounded-Corner-Buttons-Without-Images.htm
September 6, 2013 at 2:37 pm #139678
thecharmepidemicMemberThank you so so so much. It was worth waiting:)
Everything worked perfectly, but I would like to move my button up above THE CHARM EPIDEMIC words. Would it be possible to get the code for that?
Thank you so much:)
September 6, 2013 at 2:46 pm #139679
Kathryn P.Happiness EngineerYou’re very welcome!
Try replacing this:
#post-1012 {
margin-top: 130px;
}with this:
#post-1012 {
margin-top: -150px;
}September 6, 2013 at 9:15 pm #139709
thecharmepidemicMemberWorked perfectly :) Thanks for your help! :)) I appreciate it.
September 9, 2013 at 2:04 pm #139777
Kathryn P.Happiness EngineerGlad to hear it. :-)
I’m marking this thread as resolved and closing it, but feel free to start a new one if you need anything else.
-
AuthorPosts
The topic ‘BUTTON IS NOT APPEARING’ is closed to new replies.