Phil
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: website not loading fasterGoogle it. It could be absolutely anything causing that.
Try downloading the YSlow plugin for Chrome which will give you an indication of where the issue lies.
Forum: Fixing WordPress
In reply to: Remove the responsive code from the Twenty Tewlve ThemeYou’ve removed some CSS for ‘site-content’ and specifically a
float: left;Forum: Fixing WordPress
In reply to: Remove the responsive code from the Twenty Tewlve Themetry adding this to bottom of CSS:
.main-navigation ul.nav-menu, .main-navigation div.nav-menu > ul { display: inline-block !important; }If I remember, it adds display ‘none’ so you need to overwrite.
Forum: Fixing WordPress
In reply to: Remove the responsive code from the Twenty Tewlve ThemeOf course child themes are best practice – as well as making backups of everything should things go wrong – as they often do.
Forum: Fixing WordPress
In reply to: Remove the responsive code from the Twenty Tewlve ThemeRemoving the navigation.js file is done in functions, look for:
/* * Adds JavaScript for handling the navigation menu hide-and-show behavior. */ wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true );Either remove this or comment it out. This stops the mobile nav kicking in when on mobile device.
Header.php:
I removed the mobile meta tag:<meta name="viewport" content="width=device-width" />I also removed the mobile code where the html for the menu was, leaving just this:
<nav class="main-navigation" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?> </nav><!-- #site-navigation -->CSS was all that remained, so near the end where the media queries are, you want to change it to always show the full size:
@media screen and (min-width: 10px) { .site { margin: 0 auto; width: 980px !important; overflow: hidden; }There may be a few more minor edits, but I think that’s most. Worth a try and see how it is after you’ve done those, but my TwentyTwelve now is non-responsive and looks on mobile the same as desktop.
Hope this helps.
Phil
Forum: Fixing WordPress
In reply to: Remove the responsive code from the Twenty Tewlve ThemeI just did this yesterday. It’s very tricky. You have to remove the media queries section in the CSS, edit the header.php and functions file. There’s also a navigation.php file that needs to be left out when the theme loads. I now have it non-responsive though so it is doable.
Forum: Fixing WordPress
In reply to: how to add javascrpit to a webpageNo probs, we all learnt at some point 😉
Forum: Fixing WordPress
In reply to: how to add javascrpit to a webpageWhy not get it working on a normal HTML or PHP page, then transfer it over to your WP site.
Forum: Fixing WordPress
In reply to: how to add javascrpit to a webpageCheck your functions.php file as you may find it already enqueues scripts from there anyway, just add the calculator to it.
Worth a look.
Forum: Fixing WordPress
In reply to: how to add javascrpit to a webpagePlace it near this:
<script type="text/javascript"> document.documentElement.className = 'js'; </script>…and I guess you’ll want something like this:
<script type="text/javascript" src="/wp-content/themes/theme-name/fatcalc.js"></script>…although the suggestion above for ‘wp_enqueue_script’ is the correct way to do it and I’m sure it has advantages as far as avaoiding conflicts between different scripts as well.
If it’s not working then it could be a script conflict, so seriously look at the enqueue method.
Phil
Forum: Fixing WordPress
In reply to: Hover over colors on menuAdd this to style.css:
.main-navigation div > ul.menu > li:hover, .main-navigation .menu > ul > li:hover { background: #000; /* swap background colour */ }and…
.main-navigation div > ul.menu > li > a:hover, .main-navigation .menu > ul > li > a:hover { color: #fff !important; /* Changes text colour when hovered */ }Change the values to any colour you want.
Phil
Forum: Fixing WordPress
In reply to: Gap between menu and headerOpen style.css (line 351)
Paste this instead of it.
#site-title { float: left; font-size: 30px; line-height: 36px; margin: 0; width: 700px; }Remove the 18px margin by pasting in the above.
Phil
Forum: Fixing WordPress
In reply to: Photo QualityDo you have a link?
Forum: Fixing WordPress
In reply to: Photo QualityIf the images are being resized when they appear on the site, then it can sometimes affect quality depending on which resizer is used.
Forum: Fixing WordPress
In reply to: Menu ChangeLooks like 2 columns already for me…