• Resolved Marc2412

    (@marc2412)


    Hey everyone,

    Is it possible that once someone has seen/clicked on a vacancy that it becomes blue(background)? So that once the person returns to the vacancy page he can see which ones he has seen?

    I am really in need of this, desperate need! I know this has something to do with localstorage but I am clueless how to even start, where to add Js code or even what I have to code.

    Help!

    Kind Regards,

    M

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    Hmm, never done this before. Could use a custom plugin to set cookie/local storage, then have a JS script to add a class to listings.

    JS would go in its own javascript file. Code to set the cookie could go in a custom plugin or theme functions.php.

    Thread Starter Marc2412

    (@marc2412)

    Thanks for answering.

    I am completely clueless haha. It would be a nice addition to the Job Manager plugin if you think about it.

    I’ve never done anything with JS script so yea!

    It’s not a must to implement it but it would be nice to have, so if you are willing to help that would be amazing but if it takes too much time or don’t want to that is fine aswell.

    Regards,

    M

    Plugin Author Mike Jolley

    (@mikejolley)

    Actually, there may be a way.

    https://css-tricks.com/a-non-annoying-avisited-technique/

    I forgot you can style visited links ??

    Thread Starter Marc2412

    (@marc2412)

    Thanks Mike,

    I forgot about that aswell, problem is.

    Once one is visited, the colour of ALL changes.

    I don’t know how to change the background of the one that has been clicked on.

    Any idea?:P

    Plugin Author Mike Jolley

    (@mikejolley)

    Should be doable with just:

    ul.job_listings li a:visited {
    background:blue !important;
    }

    If you’ve visited them in the past, they will be blue.

    Thread Starter Marc2412

    (@marc2412)

    Worked! thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Job becomes blue after seen’ is closed to new replies.