jadejovon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: PHP Include for WordPress Nav BarI got it to work! My blog’s nav bar now looks exactly like the one on my site! I just had to get my hands dirty with a little CSS. I can’t get my submenu to appear, but I’m working on it. I think the reason it’s missing has something to do with the fact that WP isn’t reading Dreamweaver’s SpryAssets folder, even though I placed it in my theme’s directory. Nonetheless, I’m hoping I can find a workaround. In the meantime, I’m still open to suggestions…any advice would really help. If I don’t get a response I’ll still come back and post the resolution just in case anyone else is struggling with the same issues. Rest assured that I’ll eventually find the solution! If you’re reading this Jarret, thanks again for all your help; I don’t think I could have gotten this far without your advice. 🙂
Forum: Fixing WordPress
In reply to: PHP Include for WordPress Nav BarThe site I have is one that I created in Dreamweaver and it’s hosted on GoDaddy…it’s not a WP site. I do, however, have WP installed through my GoDaddy account which means that I can have a WP blog as part of my site, but only the blog itself is handled through the WP admin. It seemed like too much work to move my entire site over to WP, so I just figured I could customize a WP blog theme to look like the rest of my site. The one I found is great and I plan to keep everything the same except for the navigation bar. I’ve read online that people have done the exact same thing by turning their HTML navigation bar into a PHP file and then simply doing a PHP include to have it show up on their WP blog, but there aren’t many instructions on how they actually made it work. From what I’ve read it seems as though I’m doing everything right, but for some reason it’s not showing up accurately. Unfortunately, I don’t have a developer site or anything like that to show you; I’ve just been working on my files in Dreamweaver and then testing them through the local server on my computer. I’d planned to upload them after migrating the navigation bar over to the WP theme. Is there an easier method to accomplish my goal…? Maybe I’m going about it the wrong way…
Forum: Fixing WordPress
In reply to: PHP Include for WordPress Nav BarOk, so I’m making progress, but I’m still not there. I did as you said and I placed the javascript & css between the <head></head> tags and it loaded perfectly in Dreamweaver’s Live View. However, when I went to my local host and pulled up the actual blog, it still wouldn’t load the javascript & css. The navbar is no longer a long, vertical bulleted list, but for some reason the theme’s “menu” or “pages” script is overriding my own it seems. Either I’m missing a step, there’s another file I have to edit in my theme folder, or I’m just going to have to try to figure out the theme’s css file and make my style alterations there. It’s all so confusing, but I definitely feel as though I’m getting closer and that’s a good thing.
Here’s what the navbar looks like so far:
*It basically looks as though I enabled the theme’s menu bar via my WP admin, but I haven’t. In fact, I haven’t even created a menu there, so I don’t know what’s up with that…*
And, here’s what it should look like (except centered):
Also, Here’s the code I have so far in my theme’s header.php file if that helps:
<?php /** * @package WordPress * @subpackage TheFrancesWright */ ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="viewport" content="inital-scale=1.0, width=device-width" /> <title><?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { echo " | $site_description"; } // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) { echo ' | ' . sprintf( __( 'Page %s', 'themesweet' ), max( $paged, $page ) ); } ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <?php wp_enqueue_style('google_fonts', 'http://fonts.googleapis.com/css?family=Meddon|Ubuntu:300|Raleway:100|PT+Serif'); ?> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php wp_enqueue_script("jquery"); ?> <?php wp_head(); ?> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> </head> <body <?php body_class(); ?>> <body lang="en"> <div id="site"> <div id="content"> <div id="navbar"> <?php include('includes/navbar.inc.php'); ?> </div> <a>"> <div id="lockup"> <div id="headimg"></div> <h1 id="site_title"> <?php bloginfo('name'); ?> </h1> <i id="tagline"><?php bloginfo( 'description' ); ?></i> </div> </a>Thanks for all your help so far. Hopefully someone else will jump in soon so I don’t have to keep pestering you 🙂
Forum: Fixing WordPress
In reply to: PHP Include for WordPress Nav BarOk, so I did what you suggested Jarret and it pulled in my nav bar—THANK YOU! —the only thing is, none of the css is displaying (even though I definitely put the Spry Assets folder in the theme’s folder). Instead, it’s just a showing up as a bulleted, vertical list. Is there any way to get the Spry Menu’s style properties to display? The theme’s style.css is really confusing and I can’t figure out which code changes what, so if I have to go in there to alter it, I don’t think I’ll succeed. Here’s the code I used for the php include and the spry menu bar assets:
`<div>
<?php include(‘includes/menubar.inc.php’); ?>
</div>
<script src=”SpryAssets/SpryMenuBar.js” type=”text/javascript”></script>
<link href=”SpryAssets/SpryMenuBarHorizontal.css” rel=”stylesheet” type=”text/css” />`Is there something else I need, other than the Spry Menu Bar’s javascript to get it to display properly?
Forum: Fixing WordPress
In reply to: PHP Include for WordPress Nav BarHi Jarret,
Thanks for responding. I haven’t figured it out yet so I’ll give your method a try and let you know how it goes. I had a feeling I may have moved the php include file into the wrong folder so that may be what’s causing the issue. Thanks again for your advice.
Forum: Fixing WordPress
In reply to: Customizing a Theme to Match an Existing SiteThanks ragzor. I was looking for it in the wrong place. I still couldn’t get it to work in terms of styling it to look like my current navigation bar. I’m going to go ahead and close this topic and try another route. Thanks again for taking the time to respond; I really appreciate it. 🙂
Forum: Fixing WordPress
In reply to: Customizing a Theme to Match an Existing SiteI found the menu coding and I tried editing it, but none of my changes showed up…the menu bar either remained the same or it did something funky, like displaying as a vertical, bulleted list.
I may have found a workaround. I discovered a spry menubar plugin that I’m going to try to edit to look like the one on my site. I installed it and activated it, but it’s not showing up in my admin panel or on the theme I’ve loaded into Dreamweaver for editing—do you know how to get it to show up in either place so I can go from there and see if it might work?
Forum: Fixing WordPress
In reply to: Customizing a Theme to Match an Existing SiteHi,
Thanks for responding. I want the same menu bar in my blog that I have throughout my website. Do you know if there’s a way to duplicate it and add it to WP theme I chose?