Hey there,
I would like to increase the chance of people sharing my “lead-magnet” by adding a header and a button into the banner image inside the Thank you page of my website (people get there when they have subscribed to my newsletter via the landing page).
I would like to draft a simple sentence such as: “Hello, I’ve just signed up to receive a free guide about diet and nutrition for healthy bones and joints… I think you might like it too. This is the link …”
I want the button “” to open the user’s email app with the sentence above, so all they need to do is just put the email address of their friend.
Is it possible to do something like this within RW?
<a href="mailto:?subject=Check this out
&body=Hello, I’ve just signed up to receive a free guide about diet and nutrition for healthy bones and joints… I think you might like it too. This is the link …">Send to a Ref</a>
The HTML above would go on the " Thank you page of my website". I did fix a typo. As for a button, it might be easier to style the link like a button than to try and make a standard stacks button work.
Without a URL it’s hard to get it exact with just a screenshot, but here is some code that should work.
The HTML stack should contain this:
<a class="mybutton" href="mailto:?subject=Check this out
&body=Hello, I’ve just signed up to receive a free guide about diet and nutrition for healthy bones and joints… I think you might like it too. This is the link …">SEND THEM A QUICK EMAIL</a>
Thank you so much!.
I tried to customise the colours, but I didn’t quite grasp it… maybe I can see how it changes in CSS and next time I will be able to replicate it. I managed to change the padding and text size!
Could you help me with the following?
Button centered aligned
button background colour: #f6c631
On hover transparent background and white borders and text
As for the color changes that are pretty easy:
On the first background-color background-color: rgb(249, 195, 58);
Replace the rgb(249, 195, 58) with #f6c631
So that line would be:
background-color: #f6c631;
For the hover/focus changes, again change the RGB value to transparent on the background-color and add a border:
As for centered alignment of the button, without seeing the placement (within what container) on the page it’s hard to give an easy answer. So I’d need a URL.
Amazing Doug! I changed the colour and it looks super nice.
You will notice by the way that on mobile the button gets so “paddy” (does it exist a word as such? )… do you think it would be possible to make it more slim and less bulky?
I don’t have Foundation 4 yet, but I’m looking to get it in the short future. Should I type “text -center” inside the CSS section in the page inspector of the page?. If yes, could you tell me how to generate its CSS code?
Thanks for this!. What I noticed is that the settings you have given me in the CSS shows on IPhone SE (320 x 568) and IPhone 8 (375 x 667), but NOT on IPhone XS (414 x 736). Is this anything to do with breakpoints… if yes can you tell me how to modify the settings? Is it something I have to do inside Site Style at all?
I was talking about stacks 4, not foundation 6. If you don’t yet have stacks 4 (It should be at the top of your list) then grab the CSS box stack from Joe Workman, it’s free.
Place the HTML stack inside the CSS box. Put the class name text-center on the CSS box stack.
That should center the text. Foundation has that class built-in (both the older version and the newer).
I think Foundation by default uses a 16px font size. So the max-width on the media query above is set to 25em or (25 x 16) 400px. So if you wanted to change to include an XS than you would need to change it to at least 26em.
Instead of trying to match each possible device, it might be better to manually check (on the desktop) by shrinking the screen down, when it looks bad then make that the breakpoint. There are probably screens in every width out there.