• Resolved kitcorsa

    (@kitcorsa)


    I have just taken over the managment of a customers blog/site and they are using the mymag theme, i have started to customise the site and create a new look and feel to there site but hit a snag….

    How can i Remove sidebar Widget from Home page?

    the sidebar has a widget in it that pools all the news etc i have listed in the themes options, this works great appart from i dont want it on my homepage, is there a way to remove it??

    i have checked the wigets section and i have no wigets active so this widget has to be coded into the template.

    can someon tell me how to disable the sidebar on the homepage?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can we have a link to the site so we can see what’s going on?

    Cheers

    PAE

    Thread Starter kitcorsa

    (@kitcorsa)

    errrr well its currently running on my private Wamp server on my PC… but http://preview.wp-themix.org/ is the demo on the theam and its the sidebar that contains the callender etc. the calender can be turned off as its a widget but all the news posts in there are also in a wiget that doesn’t show in the widget panel.

    Would like to turn this whole sidebar off on the omepage only

    You’ll need to find out what template file is active for your home page. Which one it is will depend on whether you have a static front page or a blog. See http://codex.wordpress.org/Template_Hierarchy. It’ll almost certainly be one of front-page.php, home.php or index.php.

    Once you know that, and preferably in a child theme, you’ll need to remove whatever div holds the sidebar (which is likely to be theme-specific so you may have to use Firebug on your front page).

    If your theme’s using index.php for your home page you may want to create either front-page.php or home.php, as appropriate, by copying and renaming index.php and then editing it to suit.

    Remember to back up your files before you alter them so you can reinstate them if things go pear-shaped.

    HTH

    PAE

    Thread Starter kitcorsa

    (@kitcorsa)

    thants a great help and i have copied the index.php file and created a home.php file and uploaded.

    i then tested this by adding a test h1 heind in and that worked so i know the home.php is working for the homepage.

    using web developer pluging for firefox i found that the div is #right-widgets but when searching the home.php file there is no div #right-widgets on the page??

    Thread Starter kitcorsa

    (@kitcorsa)

    after looking through the home.php file i found the following line of code

    <?php get_sidebar(); ?>

    I “guessed” that this was the include code to bring in the sidebar from elceware so i commented it out <!–<?php get_sidebar(); ?>–> and hay presto its gone on my home page 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Theme MyMag] Remove sidebar Widget’ is closed to new replies.