anggackt / solen-bludit

Solen Theme for Bludit - A bright and simple Bludit blogging theme.
https://angga.win/tema-simpel-dan-cerah-untuk-bludit-solen#english
MIT License
1 stars 0 forks source link

Dropdown menu for navigation parent / child pages #2

Open mhajdel opened 6 months ago

mhajdel commented 6 months ago

Is it possible to add a dropdown menu for the navigation with parent / child pages?

anggackt commented 5 months ago

It's possible but it'll require some tinkering for the navigation area which unfortunately I haven't got time to do so lately.

For now you can use form element on the nav area to have the same effect as a dropdown menu as what PicnicCSS documentation recommend, or I'd say a select element abuse which is semantically super wrong and not recommended. Example:

<select name="selectAbuse" onchange="location = this.value;">
 <option>Parent Page</option>
 <option value="child1.php">Child 1</option>
 <option value="child2.php">Child 2</option>
</select>

Or the method I highly recommend if you're willing to invest some time to rewrite the nav area is by using this site nav area as a start for a rewrite since they're also using PicnicCSS: https://gyshido.com/

Or by writing a detached from PicnicCSS dropdown menu by using many examples on the web, such as this: https://css-tricks.com/solved-with-css-dropdown-menus/

Hope this information helps!