WordPress.org

Support

Support » Themes and Templates » Twenty Eleven » [Resolved] [Theme: Twenty Eleven] Can I change all 8 default images by simply changing the URL's?

[Resolved] [Theme: Twenty Eleven] Can I change all 8 default images by simply changing the URL's?

  • Since you can upload a single new banner by URL, it seems we should be able to change all 8 URL’s to custom images by changing all 8 URL’s.

    This assumes all are properly sized at 1000×228.

    Someone made 8 of them for me, I want to replace the old ones, and have them rotate with the random software.

    Thanks in advance.

    http://wordpress.org/extend/themes/twentyeleven/

Viewing 15 replies - 1 through 15 (of 18 total)
  • esmi

    @esmi

    Forum Moderator

    You can upload as many custom header images as you want and you do not need to touch any of the code in Twenty Eleven.

    Not sure I follow you. I have the first one installed as an uploaded image.

    But I would have to rotate it to replace one of the 8 random images, upload a new one, then change them one-by one.

    I don’t see how to replace one of the 8 random images with the new uploaded one. (drag & drop would be nice, LOL) Thanks Esmi…

    All you need to do is upload more banner images via the same upload function as your first one then there will be an option to ‘random’ once you’ve uploaded more than 1 banner pic.

    Thank you guys for trying to help, but you can’t. I have to start a new thread, because I either found a glitch in this software, or created it with the first banner I uploaded.

    The upload software no longer works the way it says it does.

    It says all pics uploaded at 1000 x 228 will be used as is.

    No. Not after I cropped the first one. I have 8 perfect banner pics made for me by an expert, all 1000 x 228.

    The header software INSISTS that I crop the end off them before I can publish them.

    Trust me, they are 1000 x 228.

    I’ll go start a new thread about the glitch.

    BTW, the first one I loaded I had to crop the top and bottom, the length was perfect. That caused the glitch.

    The 8 new ones are sized perfect.

    Yes they were sized perfect because I was the designer and do not understand why this issue is continuing on! I have placed time and effort into designing these as asked and they do not work?

    Thanks guys, we’re closing this one.

    Yes it took alot of head bashing and thinking but we figured it out

    I’m using a child theme of twentyeleven, and I’d also like to replace the default 8 images with my own.

    My concern about replacing the default images with the new ones in the twentyeleven/images/headers/ directory is that, if/when I were to update the twentyeleven theme, my custom images would be replaced with the defaults.

    a) Am I right about that?

    b) If so, I’d like to know how to designate a different directory (e.g., childtheme/images/headers/) as the repository of the custom images.

    I thought that simply creating that new directory and uploading an image would work; it didn’t.

    TIA

    jdcohan, you may b over-thinking the problem like I did. I thought I had to replace the 8 defaults to use the randomize function, but no. Once you upload a few of yours you get a new “Random” button for the ones you loaded. (the defaults never get loaded into view then)

    It seems you can load more than 8 as well.

    You never have to use the default ones then, and they don’t need to be replaced. With regards to losing your custom headers on an update, no doubt you would, BUT…..

    If the are simply uploaded as new banners into the header page without going into code, they are saved in the media library as headers. (my new ones are) That’s just like any other normal “data files”, (like comments) it should never be deleted in an update.

    I would imagine the media library is as secure as the posts themselves.

    BTW, I had marked this one resolved, I may be the only one to show up. If this doesn’t help you likely need to start a new thread.

    oops, I meant you would lose your custom headers only if they were over-written to the default ones…

    VERY cool, @magyver. I was, indeed, overthinking. Didn’t realize the uploaded images would go into /wp-content/uploads/ (but should have).

    Thanks so much.

    Jeff

    sorry to reopen this but I want to change the default images every month a new folder will be created i,e /wp-content/uploads/2012/01 then 02,03 etc.. etc…

    I currently have in the theme folder an image/ folder and then get PHP to call the images through. I can I change it so that I can point to the uploads or to this directory as my client wants to change the image every month?

    <?php
    $u= '/images/banner'; // this is the directory in the theme //
    $p= get_template_directory_uri();
    $f='.jpg';
    $i=0;
    do
    {
    $i++;
    echo  "<img src=".$p."".$u."".$i."".$f.">\n";
    }
    while ($i<8);
    ?>
    esmi

    @esmi

    Forum Moderator

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

    its a child theme….but the I want to use the admin side of things from twenty eleven theme. Just need to know how to either change some of my code to point at the uploads folder and then handle the folder structure i.e when a new image is added every month.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Resolved] [Theme: Twenty Eleven] Can I change all 8 default images by simply changing the URL's?’ is closed to new replies.
Skip to toolbar