• Resolved Thom

    (@thombottram)


    Hello,

    maybe i find a solution here for my problem.

    I want to have on my site a separate login to control the opening times.
    So i have a login form and when i login i can only see a check button or something.

    When i check that button, my site displays a picture “open”.
    When i uncheck that button, my site displays a picture “Closed”.

    Is this possible in some way?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Not sure what you are asking, Check plugins page –

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What does “open” and “closed” mean with respect to your site?

    Thread Starter Thom

    (@thombottram)

    open or closed means that the motorcrosstrack to ride on is open. we check this every day. so one person goes to the motorcross track at the morning and checks if it is good to ride on.

    this person doesn’t no anything about the wordpress dashboard and i have to get an easy solution for this. so that he is able to put on the site if the track is open or not.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Here’s what I’d do. Using Advanced Custom Fields I’d create an option for the front page: one checkbox, “open/closed” and two image fields, the closed image and the open image. On the front page of the site (using the template front-page.php), I’d test the value of that setting and then display the corresponding image.

    So, your role would be to login in the morning, edit the front page, and set the open/closed switch.

    Thread Starter Thom

    (@thombottram)

    That would be perfect thanks

    Thread Starter Thom

    (@thombottram)

    Do you have an example for this? Cause i can’t get it to work.
    I downloaded the plugin, but it seems difficult to create a checkbox.
    I can’t get the checkbox to be visible on my front page.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You don’t put the checkbox on the front page; put it in a field group that’s assigned to the the page. When you edit the page, you’ll see fields to enter that data. In the page template, you need to add code to display that content.

    https://www.advancedcustomfields.com/resources/

    Thread Starter Thom

    (@thombottram)

    I have it working now thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Open or closed picture’ is closed to new replies.