• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home » Resolved: Creating a dropdown menu from elements in WordPress

Resolved: Creating a dropdown menu from
  • elements in WordPress

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’m trying to create a dropdown menu for a gallery filter on my WordPress website. The issue is, I’m using a portfolio widget that I got with my theme and it doesn’t offer a dropdown filter menu. And since I have quite a few filter options it doesn’t look very nice. This is how it is in HTML:
I’ve seen some ways to create a dropdown menu by hiding it behind a button, but since this filter is a part of the whole widget I can’t (to my knowledge) insert a button in it. Is there any way to create a dropdown in CSS using just the code I provided?

Answer:

You can use :before to create a button. I made a codepen
You can also inject the HTML elements you need into the page using JavaScript.

If you have better answer, please add a comment about this, thank you!

css dropdown html wordpress
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How to separate multiple answers in one column, for multiple columns, by creating extra columns

26/03/2023

Resolved: How to set consistent decimal separators in R data frame?

26/03/2023

Resolved: How to resolve LNK2001 in c++ projects

26/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.