mpsn Posted March 3, 2012 Share Posted March 3, 2012 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.