WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Eleven
[resolved] Can I change all 8 default images by simply changing the URL's? (19 posts)

  1. Magyver NFL
    Member
    Posted 2 years ago #

    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 1000x228.

    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/

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  3. Magyver NFL
    Member
    Posted 2 years ago #

    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...

  4. Benicio
    Member
    Posted 2 years ago #

    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.

  5. Magyver NFL
    Member
    Posted 2 years ago #

    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.

  6. Magyver NFL
    Member
    Posted 2 years ago #

    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.

  7. Tsimshian Lady
    Member
    Posted 2 years ago #

    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?

  8. Magyver NFL
    Member
    Posted 2 years ago #

    Thanks guys, we're closing this one.

  9. Tsimshian Lady
    Member
    Posted 2 years ago #

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

  10. Jeff Cohan
    Member
    Posted 2 years ago #

    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

  11. Magyver NFL
    Member
    Posted 2 years ago #

    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.

  12. Magyver NFL
    Member
    Posted 2 years ago #

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

  13. Jeff Cohan
    Member
    Posted 2 years ago #

    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

  14. cocoonfx
    Member
    Posted 2 years ago #

    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);
    ?>
  15. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  16. cocoonfx
    Member
    Posted 2 years ago #

    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.

  17. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    I'd suggest that you start by posting a new topic. And be sure to include the fact that you are using a child theme.

  18. tyggis
    Member
    Posted 2 years ago #

    You can easily use your own images as random header images.

    - Upload your images to themes/twentyeleven/images/headers.
    - In function.php, change 1000x228 to the size of your images.
    - In function.php, edit the image file names below "// Default custom headers packaged with the theme..."

    Done :) Its like i did it on lane.no

  19. cathybeer
    Member
    Posted 1 year ago #

    Hello, I am not IT savvy at all. I am a wordpress begginner. I have just installed wordpress and logged into the Dashboard. I have an old website that was created for me 10 years ago, http://www.foresightmarcoms.com and now I want to relaunch my business with a new look website using a wordpress theme. How do I replace the old with the new?

    Thanks, Cathy

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic