• Resolved isitegate

    (@isitegate)


    Hi all, I want to disable clicking on portfolio section as im making single page website.. or better .. instead of fetching the post i want to view full size image.

    is there any simple way?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter isitegate

    (@isitegate)

    I have done it with custom css and javascript plugin by Potent Plugins.

    Here is my code for that..

    window.onload = function (){

    var portfolio_links = document.querySelectorAll(‘.post-content > a’);
    console.log(portfolio_links)
    portfolio_links = Array.from(portfolio_links)
    portfolio_links.map( (link) => {
    link.href=’javascript: void(0)’;
    } )

    }

    Thread Starter isitegate

    (@isitegate)

    Hope that helps

    Thread Starter isitegate

    (@isitegate)

    Notice: .post-content > a is my selector of the links that i wanted to disable.. in your case you will need to specify your own

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to disable blog post links, and instead view full size picture’ is closed to new replies.