WordPress.org

Ready to get started?Download WordPress

Forums

Coraline
[resolved] How to get 728x90 footer ad to fit (19 posts)

  1. greydarrah
    Member
    Posted 7 months ago #

    In Coraline, I can't figure out how to get a 728x90 ad to show properly in my footer. I'm guessing that's because the footer seems to broken up into 4 footer widget areas. Is there a way to make the full length ad show?

    I left the chopped up version showing if anyone wants/needs to look at it on my blog (www.bigshotmoms.com)

    Thanks

  2. Hi there, to set this up you'll need to make some adjustments to the file footer.php. The best way to do this is by putting a copy of footer.php in a child theme, so your tweaks won't be overwritten when updating the theme. Here are some guides in case you haven't made a child theme before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/49770088

    You can hard-code in your banner ad below this line:

    <?php get_sidebar( 'footer' ); ?>

    The ad will appear below your footer widgets and above the credits.

    Let me know how it goes.

  3. greydarrah
    Member
    Posted 7 months ago #

    Thank you soooo much for responding! Sometimes these WordPress forums don't seem as lively (active) as other forums I visit. I will do as you suggested, if it's my only option, but I have to confess that it doesn't sound fun, not knowing much about php. If needed, I'll learn.

    It seems like there should be (maybe there is???) a plugin that would handle a footer ad.

    Don't hesitate to tell me if you think a plugin is a bad solution. I'm pretty new to this and want/need to learn whatever the best way would be.

    Thanks

  4. You can certainly investigate plugin options - nothing at all wrong with that. :-)

    If you think you might want to make other adjustments to your theme, though, a child theme is the best way to go and is actually pretty simple, so it could be a good thing to add to your WordPress tookit.

    Good luck, and just let me know if you get stuck!

  5. greydarrah
    Member
    Posted 7 months ago #

    Thanks again. I'm going to start working on learning how to do this in a child theme right now, but if anyone wants to suggests a plugin, I'm happy to try one out.

  6. greydarrah
    Member
    Posted 7 months ago #

    OK...wow...I just created the style.css file and uploaded it to my new created coraline-child subdirectory (as per the instructions your link provided), and it worked...sort of (I haven't messed with creating the footer yet...one step at a time). After I activated the coraline-child theme, it kind of over-wrote some of the settings that I had created in the primary coraline theme. My colors are gone and my header image got replaced by the default themes junk. I can go into the coraline-child settigns and re-set that stuff up (I think), but was wondering if you have a different suggestion for me, before I do that?

  7. greydarrah
    Member
    Posted 7 months ago #

    In case you are wondering, here's what my style.css file looks like:

    /*
    Theme Name: Coraline Child
    Theme URI: http://www.bigshotmoms.com/wp-content/themes/coraline-child/
    Description: Coraline Child Theme
    Author: Grey Darrah
    Author URI: http://bigshotmoms.com
    Template: coraline
    Version: 1.0.0
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: coraline-child
    */

    @import url("../coraline/style.css");

    /* =Theme customization starts here
    -------------------------------------------------------------- */

    While I'm messing with this, I just set my theme back to the regular Coraline.

  8. Good for you, sounds like you're off to a good start.

    My colors are gone and my header image got replaced by the default themes junk.

    You can re-upload your header from Appearance > Header.

    What colours are you referring to?

    Had you edited any of the files in the original Coraline theme folder? If so, then you'll need to redo those edits by placing copies of the modified files in the new child theme folder.

  9. greydarrah
    Member
    Posted 7 months ago #

    The colors referred to the themes background colors. Should I re-add my header and change the background color in the new coraline-child theme? That sounds easy, but I don;t understand what you are referring to when you say "placing copies of the modified files in the new child theme folder." What files are these?

    Also, in regards to the footer, do I upload a new functions.php that has the code below in it to the coraline-child directory?

    <?php //Opening PHP tag

    // Custom footer ad
    <?php get_sidebar( 'footer' ); ?>

    <img src="http://www.awltovhc.com/image-7369452-11468208" width="728" height="90" alt="Blendtec Blenders" border="0"/>

    ?> //Closing PHP tag

    Finally, do I need to make some kind of call somewhere to make that php file active? If so, where do I do that.

    Thanks for you patience and help!

  10. greydarrah
    Member
    Posted 7 months ago #

    OK, I got the colors in the coraline-child theme re-set. As far as the header image goes, the child theme only shows me the option of the 3 default images to choose from. There is no "upload" selection shown (for me to choose my own header image) as there is in the actual Caroline theme. How can I get that "Upload" option in the child theme?

    I still also have the question in my previous post about whether or not I should create a new funtions.php, the code that goes in it (to create the footer ad), and how to call the function from the child theme.

  11. greydarrah
    Member
    Posted 7 months ago #

    Sorry to be such a pain, but I'm a bit of an idiot. I got the whole header image thing figured out, so now I'm using my child theme and everything is exactly like my previous Coraline theme.

    The only thing left I would love your help with is this previous question:

    Also, in regards to the footer, do I upload a new functions.php that has the code below in it to the coraline-child directory?

    <?php //Opening PHP tag

    // Custom footer ad
    <?php get_sidebar( 'footer' ); ?>

    <img src="http://www.awltovhc.com/image-7369452-11468208" width="728" height="90" alt="Blendtec Blenders" border="0"/>
    ?> //Closing PHP tag

    Finally, do I need to make some kind of call somewhere to make that php file active? If so, where do I do that.

    Thanks so much.

  12. I got the whole header image thing figured out, so now I'm using my child theme and everything is exactly like my previous Coraline theme.

    Great!

    What you need to do is create a copy of the footer.php file in the parent (original, untouched) Coraline theme. Place that copy in your child theme folder. By placing it there, it will override the original copy in your parent theme.

    Now in that copy in your child theme, insert your banner ad code below your get_sidebar function.

    In the default footer.php, you'll see these lines 9-10:

    <div id="footer" role="contentinfo">
       <?php get_sidebar( 'footer' ); ?>

    Add your banner code below those lines so it looks like this:

    <div id="footer" role="contentinfo">
       <?php get_sidebar( 'footer' ); ?>
    
    <img src="http://www.awltovhc.com/image-7369452-11468208" width="728" height="90" alt="Blendtec Blenders" border="0"/>

    I'd imagine you'll probably also want to wrap your image tag in a link (anchor tag) with your affiliate code embedded.

    So just to be clear: you're not creating a new functions file or touching the existing functions file - you're only adding one banner image tag (probably wrapped in a link) to the copy of footer.php that you've placed in your child theme folder.

    Let me know how it goes!

  13. greydarrah
    Member
    Posted 7 months ago #

    1 Question:

    What does "wrapped in a link" mean/look like?

  14. A link looks like this, right?

    <a href="http://wordpress.org">Visit WordPress</a>

    So to wrap your image tag in a link you would do something like this:

    <a href="http://wordpress.org"><img src="http://www.awltovhc.com/image-7369452-11468208" width="728" height="90" alt="Blendtec Blenders" border="0"/></a>

    Of course you would replace http://wordpress.org with your actual affiliate link provided by BlendTec. :-)

  15. greydarrah
    Member
    Posted 7 months ago #

    Thanks Kathryn. You're awesome!

    Grey

  16. greydarrah
    Member
    Posted 7 months ago #

    Kathryn, I'm going to go for broke here and ask you about one more separate, but related question. It's your fault for be such a great teacher! If you haven't the time, just ignore me and I'll continue to hold you in the highest regard.

    If you look at my blog (www.bigshotmoms.com) and scroll down to the bottom, you'll notice that I have a sidebar widget that is set to "fixed." Now that I have this new, amazing footer, that fixed widget scrolls over it. Is there any way that I can use another php file (perhaps sidebar.php) to tell the fixed widget that my page ends earlier than it really does, so it will stop before covering my footer ad?

  17. Hi there, I'm glad you got the footer banner sorted out!

    For your new question, would you mind starting a fresh thread so we can look at it separately there? This one's getting a little long. Thanks!

  18. greydarrah
    Member
    Posted 7 months ago #

    You bet.

  19. I've replied in your other thread.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.