• Resolved Dojah

    (@dojah)


    Hi there, thanks for the great theme.

    I had edited the style.css of my child theme, to instruct a transparent background in the featured area. That worked fine for a long time with no issues, and here is the code for that from my style.css:

    #featured {
        background-color: transparent;
    }
    
    #featured {
        padding-bottom: 0;
        border: none;
        background-color: transparent;
    }
    
    .home .widget-wrapper {
        padding-bottom: 0;
        border: none;
        background-color: transparent;
    }
    
    #featured {
        margin-top:-20px;
    }

    However, while trying to resolve an issue with the MeteorSlides plug-in, I pasted:
    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>
    into the “Featured Content” area at Appearance>Theme Options>Home Page.

    For some reason this changed the featured background to white with an inner shadow as it is now, and I cannot get it to change back to transparent.

    Website is: MogHouse.org

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can’t post PHP code into that field, only shortcodes and plain HTML. Or scripts & CSS if you enclose it in the correct tags. Not sure what you are trying to do, but you would add it to a copy of one of the PHP files in your child theme.

    Thread Starter Dojah

    (@dojah)

    @crouchingbruin, thanks for the response, but issue was actually not getting the PHP code to work.

    The issue was that (because the PHP code was treated as text) a white background with a shadow had appeared around said text, and around anything I then placed under Appearance>Theme Options>Home Page>Featured Content.

    SOLUTION: Using Inspect Element, I found that the white background was a
    Pre tag, and that my content was within it. I made my way back to Appearance>Theme Options>Home Page>Featured Content and discovered that my shortcode was inside of a Pre /Pre tag. I deleted that and then it was resolved.

    So either Responsive or my TinyMCE Widget (which handles input boxes like that one) decided to put
    Pre tags around whatever I typed into Featured Content.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured area background not obeying css’ is closed to new replies.