WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Alternating divider image (10 posts)

  1. nessler
    Member
    Posted 1 year ago #

    Hi,

    just wondering if it is possible to have a divider image, that automatically alternates, or is randomly picked.

    Say that I would have 10 different images, and I have 5 posts on a page.
    So each bottom divider image would be randomly choosen from these.

    Is this possible or any known ways to do this ?

    My theme is the standard twenty eleven theme.

  2. kjodle
    Member
    Posted 1 year ago #

    Yes, but you would need to know some php to create an array to store the names of these dividers and to pick one at random. You would then need a child theme to create add them through an action hook.

    How handy are you with coding PHP?

  3. nessler
    Member
    Posted 1 year ago #

    well, not too handy I'm afraid. Simple basics but one of the reasons why I switched over to wordpress was to get rid of the php things.

    I know how to implement them so if I would know exactly in detail what to do or what code to use I could pull this off.

    But it would require someone who would be willing to write the whole thing down for me... Hopefully you're willing to do this ?

    thanks in advance, Nick.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    It's unfair to ask volunteers for this, it sounds as though you're undervaluing the work of web developers.

    Get a quote from http://jobs.wordpress.net/ .

  5. nessler
    Member
    Posted 1 year ago #

    It's unfair to ask volunteers for this, it sounds as though you're undervaluing the work of web developers.

    This is a forum to ask for help is it not ?

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    But it would require someone who would be willing to write the whole thing down for me... Hopefully you're willing to do this ?

    Correct, it is a help forum.

  7. nessler
    Member
    Posted 1 year ago #

    then what's wrong with someone asking for additional detailed info on how to do this ?? Nothing wrong with somebody acutally willing to learn it or not ?

    They can't all be tech savy like you, obviously.

  8. alchymyth
    Forum Moderator
    Posted 1 year ago #

    I know how to implement them

    start with that - please post the code of how you implement the divider image (just for one fixed image) - this would possibly be in content.php (?)

    also describe where you want to store the random images - I would suggest that you add them into the images folder of your theme.

    please post a link to your site to illustrate what you have so far.

    then what's wrong with someone asking for additional detailed info on how to do this ??

    (emphasis added) that is absolutely ok;

    But it would require someone who would be willing to write the whole thing down for me... Hopefully you're willing to do this ?

    (emphasis added) this is beyond the scope of a support forum.

    FYI, here is part of the conditions of another WordPress forum:

    Note that we do not handle questions:

    not specific to WordPress (even if they happen in its context):
    ...
    ...
    overly complex and specific things (known as work for me for free)
    ...

    get the idea?

  9. kjodle
    Member
    Posted 1 year ago #

    one of the reasons why I switched over to wordpress was to get rid of the php things

    Well, WordPress is built in PHP, so you can't get away from the "php things" if you want to make modifications beyond the basic options that a theme offers.

    Nothing wrong with somebody acutally willing to learn it or not ?

    I would suggest that you be less disdainful of getting your hands dirty learning to code and learn to do it yourself.

  10. nessler
    Member
    Posted 1 year ago #

    well thanks for the help guys, really.
    if it is more important to you weighing the words one uses instead of actually being a little more detailed with a rookie, well congratulations to you.

    I'm done.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.