Jump to content

Recommended Posts

Hi, I was using a certain style for my menu navigation items and then when I switched to WordPress to build a client's website, I had to replace hardcoded HTML that referred to my stylesheet with wp_list_pages ( I know I should be using the newer wp_menu_nav I think it's called but for now anways), now my problem is: what if I decided I wanted to change the style selector name (something more meaningful for my sake), how would I do that and I know WordPress stores all the actual content in a database, so should I just go to the database and manually change it that way? I hope I am clear as to what I mean.

 

eg: in my header.php

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php bloginfo('name');?></title>
<link href="<?php echo get_stylesheet_uri(); ?>" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="header">
	<img class="logo" src="<?php echo get_template_directory_uri(); ?>/images/logo.jpg"/>
  <img class="stock" src="<?php echo get_template_directory_uri(); ?>/images/stock_4.jpg" /> 

	<div class="menuItems">
		<?php wp_list_pages('title_li=&sort_column=menu_order'); ?><!--MY PROBLEM is HERE: HOW DO I CHANGE THE STYLE, DO I JUST-->
<!-- MANUALLY GO INTO WORDPRESS DB????-->

</div><!-- END menuItems-->

</div><!-- END header-->

<div class="container"><!--wrapper for content body (which in turn holds sidebar)-->

<div class="contentBox">
	<div class="content">

 

Currently I'm using localhost with XAMPP.

 

Any help appreciated.

Link to comment
https://forums.phpfreaks.com/topic/258160-wordpress-style-class-selector/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.