Title: Problem while fixing containers with CSS and JQuery
Last modified: August 22, 2016

---

# Problem while fixing containers with CSS and JQuery

 *  Resolved [whoiam](https://wordpress.org/support/users/whoiam/)
 * (@whoiam)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-while-fixing-containers-with-css-and-jquery/)
 * I would like to fix sidebar and main navigation in Twenty Twelve.
    Have registered
   and enqued [script](https://raw.githubusercontent.com/peachananr/autofix_anything/master/jquery.autofix_anything.js)
   in footer.php Same I did with [style.css](https://raw.githubusercontent.com/peachananr/autofix_anything/master/autofix_anything.css)
   registering and enqueing in functions.php.
 * Calling a function in header.php doesn’t show results as in [demo](http://www.thepetedesign.com/demos/autofix_demo.html)
 *     ```
       <script>
       $(document).ready( function() {
       $(".navbar .main-navigation").autofix_anything();
       });
       </script>
       ```
   
 * I hope if there is a mistake in my actions.
    Or isn’t it possible in Twenty Twelve
   to get that worked.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-while-fixing-containers-with-css-and-jquery/#post-5182846)
 * See noconflict wrappers [http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers)
 * And check your browser’s console log when developing JavaScript – that’s a must
 *  Thread Starter [whoiam](https://wordpress.org/support/users/whoiam/)
 * (@whoiam)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-while-fixing-containers-with-css-and-jquery/#post-5182981)
 * [@andrew](https://wordpress.org/support/users/andrew/) thank you for tips.
    Reverted
   call to function in accordance with noConflict() mode and have:
 *     ```
       <script type="text/javascript">jQuery(document).ready(function(){
                  jQuery(".site-header").autofix_anything();
              });</script>
       ```
   
 * It seems to be working this way.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem while fixing containers with CSS and JQuery’ is closed to new
replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [whoiam](https://wordpress.org/support/users/whoiam/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/problem-while-fixing-containers-with-css-and-jquery/#post-5182981)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
