Viewing 30 posts - 1 through 30 (of 42 total)
  • Author
    Posts
  • #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?

    #272658

    Hey 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!
    Josue

    #273497

    Hi 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,

    #273499

    Hi!

    In the color section popup window there is a field called ‘For Developers: Section ID’.

    Best regards,
    Josue

    #273510

    Yes, 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

    #273512

    Try putting “uniquecolorsection”. Don’t forget to add the CSS.

    Cheers!
    Josue

    #273515

    I 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;
    }

    #273518

    Now post a link to the Page where you have this color section.

    Regards,
    Josue

    #273522

    I 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.

    #273523

    Copy the link of your Home and paste it here (in this thread).

    Regards,
    Josue

    #273529

    The development website page is http://picomarkets.wpengine.com/?page_id=28. (hosted on WPengine) Is this what you wanted me to post?

    #273533

    After 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!
    Josue

    #273550

    Okay. 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!

    #273553

    You 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!
    Josue

    #273555

    I 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?

    #273563

    Yes, 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!
    Josue

    #273579

    Thanks 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.

    #273593

    Try 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!
    Josue

    #273635

    Hi 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.

    #273643

    Hey!

    Please update the theme to the latest version (2.8.1).

    Best regards,
    Josue

    #274066

    Hi 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,
    Albert

    #274071

    Hey 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!
    Josue

    #274076

    Hi 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?
    Thanks

    #274085

    Adding 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,
    Josue

    #275193

    Hi 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?
    Thanks

    #275194

    By the way, here is the link to my homepage: http://picomarkets.wpengine.com/?page_id=28 (hosted on WPengine)

    #275211

    Hey!

    Try adding this code to the Quick CSS:

    html, #scroll-top-link {
        background: white !important;
    }

    Cheers! 
    Josue

    #275212

    This 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

    #275217

    In that case you need to set the header as transparent, you do this when editing the actual Page (right bottom).

    Best regards,
    Josue

    #275232

    I 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.

Viewing 30 posts - 1 through 30 (of 42 total)
  • The topic ‘Inserting a line of text over a background image’ is closed to new replies.