• Hi there,

    I am using the ifeature theme, I have created a child theme and want some alteration but not sure where to find them on the style sheet and how to edit.

    Here’s my list..
    1 – there is a ‘leave a comment’ form on the home page, this does not appear in the code so not sure how to disable
    2 – the footer is a large black strip across the bottom – I want to get rid of this..
    3- the sidebar on the right – how do i change the names of the items, i.e it gives a wordpress logon and link..

    Thanks in advance,
    mills

Viewing 15 replies - 1 through 15 (of 17 total)
  • Link?

    Having said that, I can probably help with your first point without one.

    A comment form will always appear on everything (Posts and Pages) by default, unless you disallow comments when you create/edit your page or post.

    To disallow comments on your home page, go to Dashboard –> Pages and select your home page for editing.

    When the editor appears, have a look immediately below it to see if there is a panel headed ‘Discussion’. If there isn’t, click on ‘Screen Options’ at top right and, in the ‘Show on screen’ form that opens, check the ‘Discussion’ checkbox (not the ‘Comments’ one, confusingly). Now you should see the ‘Discussion’ panel immediately below the editor.

    Open the ‘Discussion’ panel if it’s not already opened and you will see a checkbox labeled, ‘Allow comments’. Uncheck it and save your page. The comments form will not now appear on the page you are editing.

    Note you have to do this individually for all posts/pages for which you wish to disallow comments.

    I’ll have a go at your other questions once you’ve posted a link, although if I understand your last question correctly I think you can do that from the Dashboard as well. But I’ll check out your site first to make sure I am understanding you.

    Cheers

    PAE

    Thread Starter millygotech

    (@millygotech)

    Get rid of the footer:

    Just get rid of the call to get_footer() in all the relevant files (i.e. the types of display where you don’t want to see the footer.

    A better solution IMNSHO would be to replace the output that is currently in the footer with whatever code you have in your, “afterfooter”. Much more economical because you won’t have to delete anything then: simply change the contents of footer.php

    I’ll take a look at the sidebar now.

    Cheers

    PAE

    Sidebar:

    Just depends what you want to do. If you want to get rid of the widgets, just drag them out of the widget areas, using Dashboard –> Appearance –> Widgets. Drag the ones you don’t want into either the Available, or the Inactive area depending on whether you want to retain their settings.

    If you want to change what’s in the menus themselves, you need to mess with the widget code, which is a lot more scary.

    Can you explain a bit more exactly what you want to do?

    Cheers

    PAE

    Thread Starter millygotech

    (@millygotech)

    Hey, thanks for that ??
    just a few more q’s.. I am using a child theme, so, where do I edit the code? On the original theme?

    Thread Starter millygotech

    (@millygotech)

    Thanks for the sidebar – have just been playing around with that. Did want to add a flicker picture could though – any ideas on how that can be done?

    cheers

    No. Edit the child. That’s what they’re for.

    If the child doesn’t have (all) the files you need to alter, just copy the ones from the parent and then alter them in the child.

    Cheers

    PAE

    Flicker…

    Add a text widget with the code? Use a flickr widget? Use a plugin?

    Your call.

    ??

    PAE

    Thread Starter millygotech

    (@millygotech)

    Cheers,

    I have just tried removing the footer and the pages are just blank at the bottom, so now trying to copy ‘afterfooter’ code into footer – where in the code does this go? What do I need to take out?

    thanks ??

    Yep. That’s what removing a footer does. But it does ask the question, “Where is the afterfooter code, then?”.

    If you don’t need the stuff that’s in the footer, just replace it with the aferfooter code. But given the fact that taking out the call to get_footer() suppresses the output of this code it suggests that the afterfooter is either already included in the footer, or that it is being generated by a plugin that uses the wp_footer() call included in the footer. Try reinstating the call to get_footer(), but delete all the code from footer.php except the hook (i.e. wp_footer()).

    Isn’t this fun! Especially when I’m driving blind, here.

    ??

    Cheers

    PAE

    Thread Starter millygotech

    (@millygotech)

    This is what I’ve done and it gives back the original content on the footer..

    <div id=”footer”>
    <div id=”footer_wrap”>

    <?php if (dynamic_sidebar(“Footer”)) : else : ?>

    <div id=”afterfooter”>
    <div id=”afterfooterwrap”>
    <!–Inserts Copyright Text–>
    <?php $copyright = $options[‘if_footer_text’]; ?>
    <?php if ($copyright == ”): ?>
    <div id=”afterfootercopyright”>
    © <?php echo bloginfo ( ‘name’ ); ?>
    </div>
    <?php endif;?>
    <?php if ($copyright != ”):?>
    <div id=”afterfootercopyright”>
    © <?php echo $copyright; ?>
    </div>
    <?php endif;?>
    <!–Inserts Afterfooter Menu–>
    <div id=”afterfootermenu”>
    <?php wp_nav_menu( array(
    ‘theme_location’ => ‘footer-menu’, // Setting up the location for the main-menu, Main Navigation.
    )); ?>

    </div>
    <?php endif; ?>
    <div class=”clear”></div>

    <!–Inserts Google Analytics Code–>
    <?php $analytics = $options[‘if_ga_code’]; ?>
    <?php echo stripslashes($analytics); ?>

    </div><!–end footer_wrap–>
    </div><!–end footer–>

    <div id=”afterfooter”>
    <div id=”afterfooterwrap”>
    <!–Inserts Copyright Text–>
    <?php $copyright = $options[‘if_footer_text’]; ?>
    <?php if ($copyright == ”): ?>
    <div id=”afterfootercopyright”>
    © <?php echo bloginfo ( ‘name’ ); ?>
    </div>
    <?php endif;?>
    <?php if ($copyright != ”):?>
    <div id=”afterfootercopyright”>
    © <?php echo $copyright; ?>
    </div>
    <?php endif;?>
    <!–Inserts Afterfooter Menu–>
    <div id=”afterfootermenu”>
    <?php wp_nav_menu( array(
    ‘theme_location’ => ‘footer-menu’, // Setting up the location for the main-menu, Main Navigation.
    )); ?>

    </div>

    <div id=”credit”>
    <?php get_template_part(‘credit’, ‘footer’ ); ?>
    </div>

    </div> <!–end afterfooterwrap–>
    </div> <!–end afterfooter–>
    <?php wp_footer(); ?>
    </body>

    </html>

    Well, I see nothing in the footer except a search box. So the first thing to do is to get rid of that.

    Go to Dashboard –> Appearance –> Widgets. You should see the search widget in one of the footer widget areas. Drag it out of there and drop it into the Inactive or Available area, depending on whether you want to retain settings. Now go back to your site. The footer should be empty.

    Now add this rule to the end of your style.css file:

    #footer {
      display: none;
    }

    Works for me.

    Cheers

    PAE

    Thread Starter millygotech

    (@millygotech)

    I want to keep the very bottom footer with the copyright info on but want to delete the large black box above it – with the search widget in. if I remove the search widget I am left with the default menu’s which I don’t particularly like..

    thank you – apologies the for the numpty brain

    Thread Starter millygotech

    (@millygotech)

    Ok, managed to get rid (phew)

    The problem now is that the band at the bottom is not at the bottom and goes the width of the screen.. are there any ways of changing it’s position and making it in line with the header?

    cheers,
    mills

    You need to add this rule to the bottom of your style.css file:

    #afterfooter {
      width: 982px;
      margin: auto;
    }

    In other words, you’re making it the same width as the content, and centering it.

    If you’re expecting to get the footer always at the bottom of the viewport, forget it. There’s no satisfactory, cross-browser way of doing that in html/css (unless somebody else here knows better than me). Think of all the different screen sizes there are, especially if you include mobile phones.

    You’re designing for the web, so you have to accept the web’s rules. Web pages are not like fixed size paper pages.

    HTH

    PAE

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘i feature theme’ is closed to new replies.