Can I override WP site's CSS on one page/body section?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















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










share|improve this question































    0















    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










    share|improve this question



























      0












      0








      0








      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










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 4 at 2:07









      Bear

      468114




      468114










      asked Jan 3 at 22:05









      Katie HamKatie Ham

      1




      1
























          2 Answers
          2






          active

          oldest

          votes


















          0














          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.



          enter image description here






          share|improve this answer
























          • 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



















          0














          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






          share|improve this answer


























          • 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












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


          }
          });














          draft saved

          draft discarded


















          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









          0














          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.



          enter image description here






          share|improve this answer
























          • 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
















          0














          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.



          enter image description here






          share|improve this answer
























          • 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














          0












          0








          0







          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.



          enter image description here






          share|improve this answer













          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.



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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













          0














          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






          share|improve this answer


























          • 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
















          0














          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






          share|improve this answer


























          • 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














          0












          0








          0







          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






          share|improve this answer















          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







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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



















          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas

          Can't read property showImagePicker of undefined in react native iOS