Portfolio Page

This topic contains 10 replies, has 2 voices, and was last updated by  CTHthemes 4 months, 1 week ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #17924

    sametkasik
    Participant

    Supported

    Hi,

    I have two problems about the protfolio page:

    1) I want to change the color of project tags in the portfolio page. I couldn’t find where to look.

    2) When you click on title of a project in the portfolio page, it links you to the page of that project. It’s OK but I also want to link project images to the project pages. Could you please help me how to put project links to the project images in the portfolio page?

    Thanks for you assistance & best regards,
    Samet

    #17941

    CTHthemes
    Keymaster

    1, please use this style in Appearance -> Customize -> Additional CSS field

    
    .grid-item span a {
       color: #692323;
    }
    

    change the color value with yours.

    2, you have to add the code bellow to theme scripts.js file

    
    $(".gallery-item:not(.has-popup) .box-item img").on("click", function(e) {
        e.preventDefault();
        var link = $(this).closest('.grid-item-holder').children('.grid-item').children('h3').find('a').attr("href");
        window.location.href = link;
    });
    
    #17949

    sametkasik
    Participant

    Supported

    2. not working

    #17962

    sametkasik
    Participant

    Supported
    This reply has been marked as private.
    #17973

    CTHthemes
    Keymaster

    There is an error with your code. Please open the file with code editor then change it like this: http://prntscr.com/hn8qoj

    https://prntscr.com/hmrhdc

    
    
    $(".gallery-item:not(.has-popup) .box-item img").on("click", function(e) {
        e.preventDefault();
        var link = $(this).closest('.grid-item-holder').children('.grid-item').children('h3').find('a').attr("href");
        window.location.href = link;
    });
    
    #17980

    sametkasik
    Participant

    Supported

    I did what you said. But it did not work.

    #17981

    CTHthemes
    Keymaster

    Ok, send me your fpt account to check.

    #17982

    sametkasik
    Participant

    Supported
    This reply has been marked as private.
    #18002

    CTHthemes
    Keymaster

    I am sorry, the correct code is:

    
    $(".gallery-item:not(.has-popup) .box-item").on("click", function(e) {
    	    e.preventDefault();
    	    console.log('click')
    	    var link = $(this).closest('.grid-item-holder').children('.grid-item').children('h3').find('a').attr("href");
    	    window.location.href = link;
    	});
                
    

    and I’ve changed it: https://www.aslisevgi.com.tr/projeler

    #18014

    sametkasik
    Participant

    Supported

    Hi, I still have the same problem. In this link https://www.aslisevgi.com.tr/projeler when I click on the project image, it does not go to the project page as I wanted. Could you please check in again?

    #18030

    CTHthemes
    Keymaster

    I checked and it’s working. Please delete your browser cache then check again.

    Thanks.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.