Tagged: cornerstone
-
AuthorPosts
-
November 10, 2016 at 2:29 am #1251350
Hello There,
Thanks for the updates! Glad it is showing up now. To center those add inside the raw content element, please edit your page in Cornerstone and insert the following custom css in the settings tab, Settings > Custom CSS
.entry-content .x-raw-content iframe{ width: 160px !important; margin: 0 auto !important; }
Please let us know if this works out for you.
November 10, 2016 at 9:01 am #1251781Thanks, but one is 720 px wide and one is 160 px wide. I need all of them to be centered and the css you provided would only fix the 160 px one and mess up the the 720px one.
I am trying something like this so that it would center regardless of width, but it isn’t working:
.entry-content .x-raw-content iframe{ display: block; margin-left: auto; margin-right: auto; }
November 10, 2016 at 3:58 pm #1252345Hi There,
That is basically the same solution Nel is giving to you, please update the code to this:
.entry-content .x-raw-content iframe{ width: 160px; margin: 0 auto !important; } .entry-content .x-raw-content.banner2 iframe { width: 730px; }
And add a class banner2 on the RAW content element where the 720px banner is place.
Hope it helps, Cheers!
November 10, 2016 at 3:58 pm #1252346Hi There,
That is basically the same solution Nel is giving to you, please update the code to this:
.entry-content .x-raw-content iframe{ width: 160px; margin: 0 auto !important; } .entry-content .x-raw-content.banner2 iframe { width: 730px; }
And add a class banner2 on the RAW content element where the 720px banner is place.
Hope it helps, Cheers!
November 10, 2016 at 5:00 pm #1252382Thanks! I was able to take that and form my own classes per ad type.
How can I nest a raw content area in a column that is nested on a tab item and then give it a class? This has to be done with shortcode and I have it as follows:
[column type=”one-fourth”]nest raw content area here and give it a class[/column]
November 10, 2016 at 10:44 pm #1252783Hi There,
RAW content element shortcode would be:
[x_raw_content class="myclass"]Nested RAW element content.[/x_raw_content]
Thanks.
-
AuthorPosts