skip to Main Content

I’m trying to list a bunch of skills on my website and have each of them open in a pop-up on click to give a little more info.
Basically, I want it to look like this, not as a button.
Image for reference

I’ve tried some codes from the internet but they either don’t work or break my WordPress theme.

The closest I’ve gotten was with this piece of code:

"Example code"

2

Answers


  1. To open a link in a new tab as a popup, the easiest way is to :

    <a target="_blank" href="#">Link</a>

    target="_blank" is the attribute to have a link open in a new tab.

    Login or Signup to reply.
  2. If these articles are in an array, you can return this array and create an element from each article in it and assign a click event to this element.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search