Support » Theme: Swift Basic » How to reset CSS for specific

  • I am trying to add a hostel search widget:

    (I have a javascript plugin)
    <script language=’Javascript’ src=’’></script>

    to the bottom of this webpage:

    I believe the CSS in Swift, great theme by the way, is skewing the design. I was told I should reset the CSS for a specific <div> id but I don’t know exactly how to do this.

    Any advice would be greatly appreciated! Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Satish Gandham


    Which div are you talking about.
    Can you post a screenshot?

    Thanks Satish! Love the theme.

    Here’s a screenshot link. It shows how the simple javascript search widget is blown apart because of the table settings in the CSS (I think).

    Is there anyway I could put a <div> around this javascript to prevent it from adding any css style to this js?

    Thanks man

    I found this in the style.css. Maybe it has something to do with my problem?

    /* No JavaScript Fallback */
    /* If you are not using another script, such as Modernizr, make sure you
     * include js that eliminates this class on page load */
    .no-js .slides > li:first-child {display: block;}

    I still haven’t found how to eliminate the CSS styling on my javascript element.

    Here is the javascript I am trying to add to my page:

    <script language='Javascript' src=''></script>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    This is what it looks like when the page loads: Screenshot link

    How do I prevent it from blowing up?

    Thanks for the help!

    Theme Author Satish Gandham


    In swift there is an option to disable table styling under plugin compatibility.

    I used the “disable table styling” under the plugin compatibility tab, and it helped a little bit, but it’s still throwing off the javascript I pasted above.

    What I’m looking for is a HTML code which I can wrap around the javascript which will disable all CSS for the wrapped element (javascript in this case).

    The js works in the sidebar as a widget when I use the “HTML Javascript Adder” plugin, so I know the javascript it good.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to reset CSS for specific’ is closed to new replies.