Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Very interesting discussion! I am having a question regarding this. I work the same way as member s3w47m88. I copy the main theme, and then amend it. I amend most files, content, content-single, content-page, functions, header, footer, I pull in additional headers etc. So I am building my own theme based on the current WP theme.

    What I don’t quite understand is this – if I replicate this as a child theme, amend most of the files, what will an update bring to my child theme if most parts are amended?

    Many thanks.


    [Moderator note added re the below: any changes to theme files should only be made in a child theme – modifying theme files, especially in the default WP theme is not recommended. You will lose all the changes when WP is updated and it’s crucial that you have an unmodified copy on your site for troubleshooting purposes. ]

    Disable Mobile Menu in Twenty Twelve

    I have played around with the new theme today and when I checked my template on the iPad I was presented with the Menu button which I didnt like.

    So here’s my workaround:

    • I opened header.php
    • I removed everything between <nav id=”site-navigation” class=”main-navigation” role=”navigation”> and </nav>
    • I created a new div – <div id=”topnav”></div>
    • I set up a new sidebar ID in functions.php
    • I pulled in this sidebar into the header.php like this:
      <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Top Navigation’) ) : ?>
      <?php endif; ?>
    • I created a menu and pulled the menu in the new sidebar function
    • I can now style my topnav div in CSS as usual, it looks just normal on the iPad now.

    Hope that helps ??

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