Create select to filter content from a web page

Asked

Viewed 32 times

1

I am creating a site in Wordpress and I am making some modifications to the theme I purchased, I am using the Agera theme and I would like the location of that bar, where are the buttons to filter the content below was a select, because when seeing the site on mobile that bar depending on the amount of content gets big and breaks in several lines with many buttons and is not cool.

the site for you to see the theme is this: http://agera.mpcthemes.net/

If anyone wants the theme to help me just give me the email

The code is this and it works cool

<div class="mpc-portfolio-categories">
<ul>
<li data-link="all"><a href="#all" class="active" title="All" data-link="all">All</a></li>
<li data-link="design"><a href="#design" title="Design" data-  link="design">Design</a></li>
<li data-link="photography"><a href="#photography" title="Photography" data-link="photography">Photography</a></li>
</ul>
</div>

but if I do this it doesn’t work

<select class="mpc-portfolio-categories">
<ul>
<option><li data-link="all"><a href="#all" class="active" title="All" data-link="all">All</a></li></option>
<option><li data-link="design"><a href="#design" title="Design" data-  link="design">Design</a></li></option>
<option><li data-link="photography"><a href="#photography" title="Photography" data-link="photography">Photography</a></li></option>
</ul>
</select>

inserir a descrição da imagem aqui

  • 3

    Put the code so users can help you.

  • It’s not enough to just post the code. Also explain what changes you’re trying to make, otherwise someone will hardly be able to help you. This site is not a forum. If not done yet, do the [tour] and read [Ask].

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.