• Resolved nessler

    (@nessler)


    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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?

    Thread Starter nessler

    (@nessler)

    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.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

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

    Thread Starter nessler

    (@nessler)

    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 ?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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.

    Thread Starter nessler

    (@nessler)

    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.

    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?

    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.

    Thread Starter nessler

    (@nessler)

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Alternating divider image’ is closed to new replies.