-
AuthorPosts
-
May 30, 2014 at 9:34 pm #272590
How do I insert a shaded translucent bar with text in it, and place it near the bottom (above the fold) of a color section over the background image?
May 30, 2014 at 11:25 pm #272658Hey Albert!
Give that Color Section and unique ID, then try adding this to the Quick CSS:
#uniquecolorsection{ position: relative; } #uniquecolorsection:after{ content: "Text here"; position: absolute; bottom: 0; right: 0; background: black; color: white; display: block; padding: 10px; }
Cheers!
JosueJune 2, 2014 at 9:10 pm #273497Hi Joshue,
How do I give the Color Section a unique ID, and once I do, how/where do I include the ID in the Quick CSS code above?
Thanks,
June 2, 2014 at 9:21 pm #273499Hi!
In the color section popup window there is a field called ‘For Developers: Section ID’.
Best regards,
JosueJune 2, 2014 at 9:43 pm #273510Yes, I saw this field, ‘For Developers: Section ID’, but I don’t know what to put in it? Suppose I put in “1”, do I need to put a corresponding “1” in the Quick CSS code as well?
Thanks
June 2, 2014 at 9:48 pm #273512Try putting “uniquecolorsection”. Don’t forget to add the CSS.
Cheers!
JosueJune 2, 2014 at 9:58 pm #273515I typed the word uniquecolorsection into the field ‘For Developers: Section ID’ — and I copy/pasted the code below into the Quick CSS box under Theme Options / General Styling / Quick CSS, but nothing happens. What do I do next?
#top .av_header_transparency .header_bg {
background: rgba(0,0,0,0.5);
}#uniquecolorsection{
position: relative;
}
#uniquecolorsection:after{
content: "Text here";
position: absolute;
bottom: 0;
right: 0;
background: black;
color: white;
display: block;
padding: 10px;
}June 2, 2014 at 10:01 pm #273518Now post a link to the Page where you have this color section.
Regards,
JosueJune 2, 2014 at 10:08 pm #273522I am sorry that I do not know what you mean by “post a link to the Page where you have this color section. This color section is on the page I have labeled “Home”. Do I go into the Home page and click on edit, and then how do I post a link? Thank you.
June 2, 2014 at 10:09 pm #273523Copy the link of your Home and paste it here (in this thread).
Regards,
JosueJune 2, 2014 at 10:13 pm #273529The development website page is http://picomarkets.wpengine.com/?page_id=28. (hosted on WPengine) Is this what you wanted me to post?
June 2, 2014 at 10:20 pm #273533After you apply the code it should look like this:
The problem now is that in the Quick CSS the “” (quotes) symbols are being converted to characters codes, this normally happens when the code is directly copied from the mail message, you’d need to rewrite it manually.
Cheers!
JosueJune 2, 2014 at 10:35 pm #273550Okay. I am now getting the “Text here” black box with white font at the far right bottom of the page, just above the fold. I wanted to know how I can set the background of this bar from black to a translucent that is slightly darker than completely clear translucent. And, I wanted to know how I could put the “Analytics and Insights (plus text below the label) Icon Box into this bar that is just above the fold, but have the background, as I indicated, in a slightly darker translucent color so that the background image shows through. Thank you!
June 2, 2014 at 10:43 pm #273553You can’t put that complex text inside the caption with this method, the :after pseudo selector only allows simple one-liner text. I think it would be better to use a LayerSlider for what you want to achieve.
Cheers!
JosueJune 2, 2014 at 10:47 pm #273555I am not sure how to use a layer slider. As an alternative, I could go with just simple text. Could I change the black bar to a slightly darker translucent bar so the background image still shows through?
June 2, 2014 at 10:54 pm #273563Yes, change this part of the code:
#uniquecolorsection:after{ content: "Text here"; position: absolute; bottom: 0; right: 0; background: rgba(0, 0, 0, 0.5); /* This part, 0.5 is the alpha value, you can tweak it */ color: white; display: block; padding: 10px; }
Cheers!
JosueJune 2, 2014 at 11:17 pm #273579Thanks Joshue. It is getting very close to final thanks to your help. The translucent bar at the bottom of the page looks great except that it is stopping before the end of the page on the right. How can I make this bar go from edge-to-edge? Also, I wanted to bold the “ANALYTICS AND INSIGHTS” and possibly increase the font size of “ANALYTICS AND INSIGHTS” but likely keep the same font for the text that follows.
I also want to have a matching translucent bar from edge to edge under the main menu bar. I think I need to adjust the first part of the code, which I have copy/pasted below, showing what I have so far:
#top .av_header_transparency .header_bg {
background: rgba(0,0,0,0.5);
}#uniquecolorsection{
position: relative;
}
#uniquecolorsection:after{
content: “ANALYTICS AND INSIGHTS: We offer a management consulting perspective on real estate to help individual homeowners and homebuyers make better decisions. Please take a moment to view our short videos below. “;
position: absolute;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.2);
color: black;
display: block;
padding: 20px;
}The page can be found at http://picomarkets.wpengine.com/?page_id=28 (hosted on WPengine)
Thank you.
June 2, 2014 at 11:31 pm #273593Try this:
#uniquecolorsection:after{ content: "ANALYTICS AND INSIGHTS: We offer a management consulting perspective on real estate to help individual homeowners and homebuyers make better decisions. Please take a moment to view our short videos below. "; position: absolute; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.2); color: black; display: block; padding: 20px; width: 100%; font-weight: bold; }
You want to put it right here?
Cheers!
JosueJune 3, 2014 at 12:43 am #273635Hi Joshue,
I think I like the bar at the bottom only, so I won’t change the upper bar as I thought I might. Thank you for all your help.
I do have a different question, and that is the blog section right below the main image on the home page appears to have the icons cut off. How do I fix this?
Thanks again.
June 3, 2014 at 1:29 am #273643June 3, 2014 at 6:52 pm #274066Hi Josue,
How do I increase the font size of the text below (“ANALYTICS & …”) and insert a line break midway through the text so that it wraps around to a second line where I want the break? Here is the Quick CSS code:
#uniquecolorsection{
position: relative;
}
#uniquecolorsection:after{
content: “ANALYTICS & INSIGHTS: We offer a management consulting perspective on residential real estate to help individual homeowners and homebuyers make better decisions. Please take a moment to view our short videos below. “;
position: absolute;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.15);
color: #404040;
display: block;
padding: 32px;
width: 100%;
font-weight: bold;
}Thanks,
AlbertJune 3, 2014 at 7:00 pm #274071Hey Albert!
To put a break line change the code to:
#uniquecolorsection{ position: relative; } #uniquecolorsection:after{ content: "ANALYTICS AND INSIGHTS: \A We offer a management consulting perspective on real estate to help individual homeowners and homebuyers make better decisions. Please take a moment to view our short videos below. "; position: absolute; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.15); color: #404040; display: block; padding: 32px; width: 100%; font-weight: bold; white-space: pre; }
There is no way to apply a style (font size increase) to a single part of the text with the method we are using.
Cheers!
JosueJune 3, 2014 at 7:04 pm #274076Hi Josue,
I am okay with a larger font for the entire line of text. How do I increase the font for the entire line of text?
ThanksJune 3, 2014 at 7:12 pm #274085Adding a font-size property will do the job, try:
#uniquecolorsection{ position: relative; } #uniquecolorsection:after{ content: "ANALYTICS AND INSIGHTS: \A We offer a management consulting perspective on real estate to help individual homeowners and homebuyers make better decisions. Please take a moment to view our short videos below. "; position: absolute; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.15); color: #404040; display: block; padding: 32px; width: 100%; font-weight: bold; white-space: pre; font-size: 22px; line-height: 30px; }
Regards,
JosueJune 5, 2014 at 4:28 pm #275193Hi Josue,
I would like to use the sticky header feature; however, when I use it, it adds a black bar to the background of the menu bar. How can I change the black bar to transparent (or slightly opaque (e.g., 0.15 opacity)? Also, when I click on the sticky header feature box, the added bar shifts the text bar at the bottom of the image to go below the fold instead of above it?
Can you help me make these adjustments?
ThanksJune 5, 2014 at 4:29 pm #275194By the way, here is the link to my homepage: http://picomarkets.wpengine.com/?page_id=28 (hosted on WPengine)
June 5, 2014 at 5:01 pm #275211Hey!
Try adding this code to the Quick CSS:
html, #scroll-top-link { background: white !important; }
Cheers!
JosueJune 5, 2014 at 5:07 pm #275212This code changes the bar from black to white, but does not make the bar translucent on the top of upper part of the image. Once I check mark the Sticky Header feature, it sets the menu bar ABOVE the picture, but I’d like it ON the picture so the translucence is on the picture, not the white space above the picture. I think that is why the text at the bottom of the image now drops below the fold. Can you help with these changes? Thanks
June 5, 2014 at 5:14 pm #275217In that case you need to set the header as transparent, you do this when editing the actual Page (right bottom).
Best regards,
JosueJune 5, 2014 at 5:28 pm #275232I had already set the the “Activate Header transparency” on the lower right of the page to “Transparent Header”. I think when I check the Sticky Header feature, it moves the existing menu bar that sits directly on the image to a row just above the image. Therefore, even if the background of the header is transparent, it is not going to show the image in the background. How do I fix this? Thanks.
-
AuthorPosts
- The topic ‘Inserting a line of text over a background image’ is closed to new replies.