Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Getting to grips with WordPress

Featured Replies

Hi all,

 

I'm just having my first attempt at creating a WP theme.

 

No massive problems so far but I want to change how some of these functions output but I can't find the relevant code.

 

As an example I want to display the categories so I use <?php wp_list_categories('' ); ?> The thing is I want to change what it outputs (remove the <li> and change a little of the code) - anyone know the folder/directory those functions are written, one of the core WP files?

 

Thanks guys

<?php wp_list_categories('' ); ?>

 

 

To display the categories, I believe it should look like this

<?php wp_list_categories(); >

 

Is that what you were trying to figure out?

 

-John

  • Author

No, I want to change the way it outputs that function. I might have got it sorted now, sort of :huh:

Definitely check out the codex (if you haven't already)

Normally helps me out with most problems I encounter :)

wp_list_categories here

  • 2 weeks later...

Why would you want to remove the <li>?

 

If you are planning arrange the navigation links side by side instead of top to bottom, you can do it without removing the <li>. Simply set float: left; or float: right in the li tag in the CSS.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.