Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #617279

    Hey guys,

    so I have the problem that the hover on portfolio doesnt work the way it should.
    So what we wanted to have is a change with hover from black and white to color on the frontpage HOME Portfolio
    That works in our TEST-environment but not in our LIVE-environment.

    As we had an issue with the order on portfolio due to Post Types Order plugin

    it feels like this issue started with solving this one, as the hover worked before.

    For the history of this:
    we had codeable do some work for us on custom (field) options and for some reasons this custom options
    does not appear in LIVE Version but in our TEST mode.

    I dont know if this exactly relates to the problem, but the routine was – look for portfolio pic named with SW (for example: KP038_picturenamSW.png and give back the equivalent coloured one KP038_picturenam.png.

    Can you lend a hand here?

    Found out that this frontpage masonry has a custom css called custom_masonry but I couldnt find a related clue to this.

    Thanks for helping out.

    Best Stephan

    #619516

    Hey handelsmann!

    Thank you for using Enfold.

    How did you implement the codeable.js code? The script will only work if the page’s body has a class attribute of “home”.

    if($('body').hasClass('home')){
    

    It’s not working in the portfolio page because of that.

    Best regards,
    Ismael

    • This reply was modified 8 years, 8 months ago by Yigit. Reason: moved content to private content field
    #619579

    Hey Ismael,

    thank you so much. This seems to be the solution. This is so great.

    Right in the moment you set the above mentioned page (private content) as the home page
    the hover effect is there. So does your system set this class for the frontpage?
    And do I have the chance to set this functionality for a page
    if it is not the home (front) page by your theme frontpage settings?!

    You are awesome guys. This is the best support out there in stratosphere.
    BTW – can you mark the link in your answer as private as we are in prelaunch mode.

    Thanks.Stephan
    Stephan

    #619966

    Hey!

    You can change the code to following one

    if($('body').hasClass('home,.page-id-59')){

    and that should help. You can replace page ID to match your pages ID

    Cheers!
    Yigit

    #620463

    Hey Yigit,

    thanks for helping in this. Did the change and replaced the code, but it had
    no influence on the HOME portfolio – page (ID 295!
    See screenshot.

    Best Stephan

    #622105

    Hey!

    you are using a caching Plugin, so go into plugin’s settings and choose to switch off caching. Deactivate this and all other plugins. Afterwards clear browser cache and hard refresh a few times.

    By the way you are using an old version of the theme and of WordPress. Please upgrade both.
    Deactivate all your plugins to make sure none is causing any conflict.

    Regards,
    Andy

    #623702

    HI Andy,

    thanks, the updates come faster than I can complete the pages :-).

    Will check here!

    Best Stephan

    #625540

    Hi,

    Remove the “dot” in the .page-id-295. And the code should be like this:

    if($('body').hasClass('home') || $('body').hasClass('page-id-295')){
    

    Or something like this should work as well:

    if($('body').is('home, page-id-295')){
    

    Best regards,
    Ismael

    #625636

    Hi Ismael,

    this first code works perfectly. Thank you so much for helping out.

    Best Stephan

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Hover on portfolio masonryco’ is closed to new replies.