Can I override WP site's CSS on one page/body section?
![Multi tool use Multi tool use](http://sgv.ssvwv.com/sg/ssvwvcomimagb.png)
Multi tool use
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Working on a site with some wonky CSS - I have had this issue before, but trying to install simple gravity forms poll on a simple page with their shortcode....CSS is preventing the actual question content from showing up. Is there some magic code that I can use in the wysiwyg
text/code view before the shortcode, that will override the css
that is messing this up? Looking for a quick fix if one exists.
Shortcode:
[gravityform action="polls" id="6" mode="poll" style="green" cookie="1 week"
show_results_link="true" display_results="true" percentages="true" counts="true"]
Test page
html css shortcode
add a comment |
Working on a site with some wonky CSS - I have had this issue before, but trying to install simple gravity forms poll on a simple page with their shortcode....CSS is preventing the actual question content from showing up. Is there some magic code that I can use in the wysiwyg
text/code view before the shortcode, that will override the css
that is messing this up? Looking for a quick fix if one exists.
Shortcode:
[gravityform action="polls" id="6" mode="poll" style="green" cookie="1 week"
show_results_link="true" display_results="true" percentages="true" counts="true"]
Test page
html css shortcode
add a comment |
Working on a site with some wonky CSS - I have had this issue before, but trying to install simple gravity forms poll on a simple page with their shortcode....CSS is preventing the actual question content from showing up. Is there some magic code that I can use in the wysiwyg
text/code view before the shortcode, that will override the css
that is messing this up? Looking for a quick fix if one exists.
Shortcode:
[gravityform action="polls" id="6" mode="poll" style="green" cookie="1 week"
show_results_link="true" display_results="true" percentages="true" counts="true"]
Test page
html css shortcode
Working on a site with some wonky CSS - I have had this issue before, but trying to install simple gravity forms poll on a simple page with their shortcode....CSS is preventing the actual question content from showing up. Is there some magic code that I can use in the wysiwyg
text/code view before the shortcode, that will override the css
that is messing this up? Looking for a quick fix if one exists.
Shortcode:
[gravityform action="polls" id="6" mode="poll" style="green" cookie="1 week"
show_results_link="true" display_results="true" percentages="true" counts="true"]
Test page
html css shortcode
html css shortcode
edited Jan 4 at 2:07
Bear
468114
468114
asked Jan 3 at 22:05
Katie HamKatie Ham
1
1
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Yes you can. Right-click on the element on the page and you'll see the option to inspect the element. This will show you the class names and styles applied to that element. You then write your own CSS to target these classes.
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
Just back up before your changes and go for it.
– Diodeus - James MacFarlane
Jan 7 at 14:44
add a comment |
You can use Dev Tools of your browser to inspect the element, and see that there is css rule display: none
. Change it to:
.gform_wrapper label {
display: initial;
}
And if it has no effect, try to add !important
.
EDIT:
If you are afraid of affecting other pages of your site, you can use the unique class name that the WP set to the body
element of each page (you can find it in the source, page-id-2720
). And it will look like:
.page-id-2720 .gform_wrapper label {
display: initial;
}
Good Luck
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
You are welcome :) don't be nervous. I'll edit the answer with explanation now.
– SeReGa
Jan 7 at 20:47
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54030439%2fcan-i-override-wp-sites-css-on-one-page-body-section%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes you can. Right-click on the element on the page and you'll see the option to inspect the element. This will show you the class names and styles applied to that element. You then write your own CSS to target these classes.
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
Just back up before your changes and go for it.
– Diodeus - James MacFarlane
Jan 7 at 14:44
add a comment |
Yes you can. Right-click on the element on the page and you'll see the option to inspect the element. This will show you the class names and styles applied to that element. You then write your own CSS to target these classes.
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
Just back up before your changes and go for it.
– Diodeus - James MacFarlane
Jan 7 at 14:44
add a comment |
Yes you can. Right-click on the element on the page and you'll see the option to inspect the element. This will show you the class names and styles applied to that element. You then write your own CSS to target these classes.
Yes you can. Right-click on the element on the page and you'll see the option to inspect the element. This will show you the class names and styles applied to that element. You then write your own CSS to target these classes.
answered Jan 3 at 22:11
Diodeus - James MacFarlaneDiodeus - James MacFarlane
95.5k29139167
95.5k29139167
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
Just back up before your changes and go for it.
– Diodeus - James MacFarlane
Jan 7 at 14:44
add a comment |
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
Just back up before your changes and go for it.
– Diodeus - James MacFarlane
Jan 7 at 14:44
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
Just back up before your changes and go for it.
– Diodeus - James MacFarlane
Jan 7 at 14:44
Just back up before your changes and go for it.
– Diodeus - James MacFarlane
Jan 7 at 14:44
add a comment |
You can use Dev Tools of your browser to inspect the element, and see that there is css rule display: none
. Change it to:
.gform_wrapper label {
display: initial;
}
And if it has no effect, try to add !important
.
EDIT:
If you are afraid of affecting other pages of your site, you can use the unique class name that the WP set to the body
element of each page (you can find it in the source, page-id-2720
). And it will look like:
.page-id-2720 .gform_wrapper label {
display: initial;
}
Good Luck
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
You are welcome :) don't be nervous. I'll edit the answer with explanation now.
– SeReGa
Jan 7 at 20:47
add a comment |
You can use Dev Tools of your browser to inspect the element, and see that there is css rule display: none
. Change it to:
.gform_wrapper label {
display: initial;
}
And if it has no effect, try to add !important
.
EDIT:
If you are afraid of affecting other pages of your site, you can use the unique class name that the WP set to the body
element of each page (you can find it in the source, page-id-2720
). And it will look like:
.page-id-2720 .gform_wrapper label {
display: initial;
}
Good Luck
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
You are welcome :) don't be nervous. I'll edit the answer with explanation now.
– SeReGa
Jan 7 at 20:47
add a comment |
You can use Dev Tools of your browser to inspect the element, and see that there is css rule display: none
. Change it to:
.gform_wrapper label {
display: initial;
}
And if it has no effect, try to add !important
.
EDIT:
If you are afraid of affecting other pages of your site, you can use the unique class name that the WP set to the body
element of each page (you can find it in the source, page-id-2720
). And it will look like:
.page-id-2720 .gform_wrapper label {
display: initial;
}
Good Luck
You can use Dev Tools of your browser to inspect the element, and see that there is css rule display: none
. Change it to:
.gform_wrapper label {
display: initial;
}
And if it has no effect, try to add !important
.
EDIT:
If you are afraid of affecting other pages of your site, you can use the unique class name that the WP set to the body
element of each page (you can find it in the source, page-id-2720
). And it will look like:
.page-id-2720 .gform_wrapper label {
display: initial;
}
Good Luck
edited Jan 7 at 20:57
answered Jan 3 at 22:12
SeReGaSeReGa
415416
415416
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
You are welcome :) don't be nervous. I'll edit the answer with explanation now.
– SeReGa
Jan 7 at 20:47
add a comment |
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
You are welcome :) don't be nervous. I'll edit the answer with explanation now.
– SeReGa
Jan 7 at 20:47
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
Thanks so much! Do I have to edit this in the CSS or is there something that I can add specifically to this content area in the text/code box? I'm super nervous to edit the CSS as I know very little about it. Altering the CSS file would alter the entire site, correct? My luck I will take the whole thing down...
– Katie Ham
Jan 7 at 14:42
You are welcome :) don't be nervous. I'll edit the answer with explanation now.
– SeReGa
Jan 7 at 20:47
You are welcome :) don't be nervous. I'll edit the answer with explanation now.
– SeReGa
Jan 7 at 20:47
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54030439%2fcan-i-override-wp-sites-css-on-one-page-body-section%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
SI R78peGBikLZp 2Q23Cdw,B4ASDyMyoYv12overIq