CMS Development

gramirez
Contributor

I need help aligning text in the header and deleting a placeholder image box.

AABBI'm a beginner at this and I'm getting many requests at my job. I have two parts to my requests.

Part 1:
I need to align the text and blue CTA to the left (up to the magenta line as indicated in image "A").

Part 2:
I need the placeholder image (that shows up when re-sizing window smaller) removed.

Here is the link:
https://go.socialstudies.com/freedom-history-of-us

0 Upvotes
9 Replies 9
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

I need help aligning text in the header and deleting a placeholder image box.

Hey @gramirez 

 

Looks like you forgot to attach the image you referenced.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
gramirez
Contributor

I need help aligning text in the header and deleting a placeholder image box.

Thanks Kevin! I Added them.

0 Upvotes
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

I need help aligning text in the header and deleting a placeholder image box.

Hey @gramirez 

 

So to start you'll want to add a few lines of css. Basically we want to ommit some of the provided properties. you can see I've done this via the dev tools in the screenshots below:

 

.product-herosection .row-fluid-wrapper .row-fluid {
  display: flex;
  justify-content: unset; /* This tells the content of this box to center itself*/
}

.product-herosection .prohero-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
}

Along with that CSS you'll want to change the CTA's wrapping element to 12 column rather than 6 (span6 > span 12). See below:

Screeenshot - 2020-04-08 at 7.59.04 AM.png

 

For the image try this:

.btm-img-holder, 
.btm-img-holder img {
    display: none;
    visibility: hidden;
}
Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Upvotes
gramirez
Contributor

I need help aligning text in the header and deleting a placeholder image box.

Quick question, I was wondering if these changes would affect the site globally or will it only hide the "holder image" on THIS page. I'm also not sure which stylesheet to place my rules.

NOTE
I see 3 linked style sheets attached to this page:
1. s2_styles.css
2. new-lp-style.css
3. freedom.css

The page is called "freedom-history-of-us", I'm guessing I should put the rules inside "freedom.css", is that correct? Screen Shot 2020-04-08 at 7.14.54 AM.pngPlease let me know when you get a chance, thanks again Kevin! 

0 Upvotes
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

I need help aligning text in the header and deleting a placeholder image box.

Hey @gramirez 

 

To have these only take effect on this page you should add that CSS to the "additional <head> markup" section. Just wrap it in an opening and closing style tags: <style></style>

 

To have it take effect on all pages I would add that CSS to an existing stylesheet. Be aware of which sheet contains what. This CSS will only take effect if it is load after (cascading) the initial CSS that we are attempting to over write.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Upvotes
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

I need help aligning text in the header and deleting a placeholder image box.

I would also check to see if you template allows you to remove the image on the responsive sizes via the content editer UI.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Upvotes
gramirez
Contributor

I need help aligning text in the header and deleting a placeholder image box.

I haven't gotten around to trying this yet, I just wanted to let you know because I'm so busy with troubleshooting/debugging other issues. I will definately post when I get a chance to try these out.

gramirez
Contributor

I need help aligning text in the header and deleting a placeholder image box.

Thanks for the reply! This is what I seeScreen Shot 2020-04-08 at 8.07.55 AM.png

 

0 Upvotes
gramirez
Contributor

I need help aligning text in the header and deleting a placeholder image box.

Awesome! Thank you so much Kevin! I'll give this a try and let you know how it goes! 😄

0 Upvotes