How do I put some texts on a photo and have control of font and size?
ouki
Registered Users Posts: 69 Big grins
Smugmug.com has the perfect example of what I want to do.
A single stretchy photo filling the width of the browser, with some text on it. I'd like to be able to control the font size per line, and put a clickable textbox like "try it now". How do I do this?
A single stretchy photo filling the width of the browser, with some text on it. I'd like to be able to control the font size per line, and put a clickable textbox like "try it now". How do I do this?
0
Comments
I use the following code to put a piece of text on my images when I hover...
http://www.brandolinoimaging.com/Image-Galleries/My-Portfolio/Views-Choice/Viewers-Choice
Thanks for your tips. I'd rather having the text independent from mouse behaviors. I'd like to put some text on the center of the photo, either clickable or not. Similarly, a clickable text block like "try it now" would be nice. Haven't figured out how to do it...
You can adjust the code the put the text there permanently. And I assume you could put a link in there using the correct html and CSS code. You will have to ask around on that one though.
I don't see any text when I hover your images.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
What browser and screen resolution? I know part of the code is set up to make the text not show on smaller screens as it will cover too much of the image...
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I don't know why but this code is in there (I didn't write the code) but I think it limits viewers if screen is too narrow...
Try removing that line from my code using the web tools and see it the text shows up for you.
edit: I changed my screen resolution to match yours and the text does not appear... it's the code...
Edit #2... Mike did you see any images in that gallery?
If I understand correctly you want to place text over a background image ... it sounds like you want the photo to fill the entire page. So first...
1) Under Customizer, "Theme" tab, click the wrench icon under "Active Theme.
2) Under the "Background" tab, select a photo.
3) Set the following options:
Photo applied to: Entire Site
Photo size: X3 (or Original?)
Scale: Fill
Repeat: none
Scroll background: fixed
Click done
4. Under the "Content" tab in the customizer, go to "HTML & CSS" and drop an HTML block into the center of your page.
5. Add the following code:
HTML:
And CSS:
You'll need to customize the HTML and CSS for whatever fonts, font-sizes, font-colors, hover colors, button colors, etc.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
No, I did not mean the background image. I would like to be able to have text on individual photos. Just as shown in screanshot.
So place a "Single Photo" content block on your site.
Then use the same exact code I gave you above but replace the first set of CSS with:
Adjust the "top" accordingly.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations