Want to host a blog at your own website without redoing your whole site? You’ve come to right place. Here you’ll learn how to add a WordPress 3 blog to your existing website. There are a few conditions: you should be using PHP, CSS and XHTML and, although it isn’t essential, you should be using includes for common parts of your site like the header, menu and footer.
This is not a tutorial about making a standard WordPress theme and it doesn’t adhere to the standards set in Designing Themes for Public Release. It is intended to seamlessly incorporate a WordPress 3 blog into your existing website.
Also, it uses a simplified file structure instead of a WordPress child theme. Child themes are great and should be used whenever you can, but I’ve found that for many people overriding the CSS in the parent theme can be too much of battle and just isn’t an efficient use of time.
You’ll need to know some basics:
- how to FTP to your site;
- how to set permissions;
- your database hostname (probably localhost), the database name, your username and your password for the database; and
- some CSS and XHTML basics.
Check out the finished example PHP website with a WordPress blog.
By the way, one might consider the option of redoing the whole site completely in WordPress. It works great.
Prepare WordPress
Download and install WordPress
- Download the latest version of WordPress. Some web hosts offer easy installation options from the website control panel.
- Install WordPress on your server in a new directory. Call it something user-friendly like blog or articles. For this article let’s call it blog. Follow these easy five-minute installation instructions.
- Complete the installation and make sure everything is working. See Common Installation Problems or add a comment below if you’re having trouble.
- Right off the bat you may want to activate the Akismet plugin to help keep spam at bay.
Create the folder for your own theme.
- FTP into the themes folder in your WordPress installation (blog/ wp-content/ themes). Remember, we’re calling the WordPress installation folder blog.
- Create a new folder in themes to hold your theme files. We’ll call it mytheme but you can call it whatever you like.
Create the two can’t-do-anything-without-them files, index.php and style.css.
- In mytheme, add a new empty file with the name of index.php. We’ll come back to this one later.
- Also in mytheme, create a new file called style.css. This file is necessary for WordPress to recognize your new theme.
- In style.css add the following code. Obviously, change what’s necessary to make it your own.
1234567/*Theme Name: My ThemeTheme URI: http://yourwebsite.com/Description: WordPress theme for my existing website.Author: Your NameVersion: 1.0*/
Change the current theme to My Theme.
- Login to your WordPress installation. In this case it would be at blog/wp-login.php.
- Click on Appearance then Themes if you aren’t already there.
- If all went well so far, you should see your theme, My Theme, the version number, your name and the description. Click Activate. If it tells you the theme is broken or similar, go back and check style.css.
- Preview your theme to make sure there are no serious errors. All you should see is a blank page.
Pingback: WordPress, The joys of changing the look. | Chrisy Udale
Hello Swolock,
I tried and tried and tried to fix this but I just can’t find the way how. If you have the time and are in the mood please check out http://interestmore.com/blog/. Don’t focus on the styling and the colors as it is still under production. The problem as you can see is that the posts don’t stop and travel to the right of the page instead of changing line when they should (unless I hit the enter while I am writing the post…). I am not sure if it is a css problem (I don’t think so as I tried switching off each stylesheet I attached (twentyten stylesheet and two site specific) as well as deleting the extra inline code instyle the style.css file. By doing so the general layout would break according to what styles were missing but the main problem with the posts wasn’t fixed…
I believe I followed the tutorial correctly and uploaded and modified all the appropriate files as described…. but …. heeelp.
Thanks very much in advance
I was silly,
word-wrap:break-word for the container of the posts solved the issue. Such a simple solution
Sorry I haven’t been able to get back to you. I’m glad you resolved you’re issue.
Hi There,
First THANK YOU THANK YOU for a great tutorial. Everything worked perfectly except one little thing. If you go to the site: http://www.crsdesigns.biz/blog/ you’ll see the right hand menu and the blog post don’t line up. I saw earlier some suggestions on how to fix this, but honestly, they’re a little above my head. Anyone willing to give some extra help?
Wendi
Hi Wendy,
I took a look at your site using the ultra-useful Firebug plugin for Firefox. Does the div “mainContent” have any CSS attributes? I didn’t see any. If not, try adding something like
#mainContent { width: 500px; }. You may need to add afloat: left;in there too. Obviously the width will need to be adjusted to the width you want after you get the content and sidebar to sit next to each other. One other thing you might try is adding aclear: both;after the closing div for mainContent. I like to add those in a br, like lessthantsign br style=”clear: both;” / greaterthansign. That should clear the content and sidebar floats. I hope that helps.Thanks Swolock! That’s getting warmer. Now it looks like we’re off of alignment by just a little bit. Any idea on how to bring up the title on the blog post just a little higher so it lines up with the top of the search box?
- Wendi
There’s an H2 on line 27 of your css with top padding. Try changing the top padding to 0, so
padding: 0 0 13px;.You rock! Have a beer as a reward for being so awesome!
-Wendi
Swolock, if you ever come to Greece email me to buy you a beer, ouzo, whatever you want. Excellent tutorial. Thanks
zissman, thanks! I’ll definitely take you up on that beer.
I’m only a novice with WordPress and working my way through the steps you’ve outlined. Definitely the most comprehensive I could find! And it was going really well, until I got to page 3 and hit a brick wall with this Step:
” Save your site’s includes files to the mythemes folder.”
“Open your site’s header file and save a copy in the mytheme folder. Call it something that differentiates it from the original and indicates that is from your existing website. For this tutorial the existing file is called logo.php, we’ll call the new one is site_logo.php. It can be anything as long as it makes sense. It’s best to name these files without a hyphen because WordPress will see that in a different way. The files should be in the theme folder, not in a subfolder.”
I honestly have no idea what ” includes files” are… or if that’s a typo. From the context of the following paragraph, it kinda sounds like I’m supposed to take my existing website (not in WordPress) and import copies of it into WordPress. Is that correct?
These first couple sentences are a bit confusing… “Open your site’s header file and save a copy in the mytheme folder. Call it something that differentiates it from the original and indicates that is from your existing website.”
My header file is already saved in mythemes. But then it mentions differentiating it from my “existing site,” which makes me wonder if the .php header, footer, etc files are supposed to be my “current” website. The current site is in HTML. Can I import html and still have this process work? Or am I not supposed to touch my existing site?
Background: I’m in the midst of building a rather extensive site for a company, and just need one of the navigation tabs to access a blog. That’s all I am trying to integrate with WordPress. I really thought this would be a simple embedding & skinning kind of process. Am I even on the right path here or am I smoking crack? Should just link out to a separate WordPress site with a similar look/feel?
Sorry for the long question. As I mentioned… brick wall.
- rob k
Ok… I was smoking crack. I found the “wp_includes” file.
Went back a couple steps, and started over.
Of course, now I cannot find the nav.php that resembles the Step on page 2 of the instructions, but I’ll keep poking around until I find it.
robk… you may not have a nav.php. That is just an example file I used for my version of the existing site. It isn’t part of the WordPress installation. It’s just a file from the existing hypothetical example site where the non-WordPress navigation comes from. Others have been confused about that too, so don’t feel bad. I guess it isn’t as clear as it could be.
thanks for chiming in.
i made my own nav.php file based on the navigation from my actual website. it came up without a problem. now I’m trying to load all the other files from twentyeleven into mythemes and have the blog page load without errors.
So the version of WordPress I have does not include the twentyten folder mentioned in the instructions. Likewise, I’m not seeing the “loop” files in the twentyeleven theme folder.
Any suggestions?
robk
This tutorial is written for twentyten. You can download it here. I believe the equivalent to loop.php may be content.php in twentyeleven. You might want to give that a try. But like I said, this tutorial is written specifically to work with twentyten.
Found the folder… hours later still can’t figure out what goes where.
Seems like this should be really easy. Just embed some code into
my existing site and call it a day.
Hi there!!!
This tutorial is EXACTLY what I have been looking for, and SO easy to follow!
Thank you for sharing!
Quick question though, from the ‘blog home page’ it all seems to be looking and functioning great. But then when I click on any of the posts, where i could then read and comment etc etc, all of my header styles etc seem to disappear. Another thing that I’ve noticed is that from these pages – where my navigation links used to be directed to, for example ../home.html, they are now being directed to ../blog/home.html and as such none of them are working.
Any advice would be great.
Thanks again, I will definitely be bookmarking this page for future reference!
Michelle
It’s a little hard to be specific without knowing more about your website. However, for your first problem, “all of my header styles etc seem to disappear”, it sounds like your WP page isn’t finding a) a stylesheet and/or b) the files associated with your header. That might be a URL path problem. Try using an absolute path like “http://mywebsite.com/path-to-missing-file” instead of just “path-to-missing-file”. I can’t be more specific because I don’t know which files are not being found. Regarding your second question about the links, that sounds like a URL path issue as well. Again, try using an absolute path like “http://mywebsite.com/home.html” instead of just “home.html”. I hope that helps.
Hi,
I have fixed the issue with the links – as you suggested the absolute paths has worked great!
Just one other issues if you could advise, and I have just implemented your tutorial with a second website and I’m having the same problem with both sites. That is, when I activate my template, the sidebar only displays the ‘search’, ‘Archives’, and ‘Meta’ features. However when I activate, for example the TwentyTen theme, it shows ‘Recent Posts’, ‘Recent Comments’ and ‘Categories’ as well.
Any ideas why this might be the case – and any suggestions as to how I can fix this?
Regards,
michelle
Oh how embarrassing! I am so new at WordPress. I just realised it’s a widget thing! All sorted now! No need to answer my question!
Thank you again for a great tutorial! I have saved you to my favorites!
Hi Michelle
Don’t be embarrassed! That’s an easy mistake to make. I’m glad you figured it out and thanks for bookmarking the tutorial.
Hi there. I successfully followed this tutorial once already, so i know it’s great. However, I am using it for the second time and have run into a stumbling block. On the fifth page of your tutorial, once i’ve copied the various files from the TwentyTen theme, and i look at my blog, I am seeing this error where the content should be:
Fatal error: Call to undefined function twentyten_posted_on() in /home/content/19/7957319/html/blog/wp-content/themes/myowntheme/loop.php on line 134
I didn’t run into this error last time tha tI can recall. Any ideas?
Note: When i look at line 134 of loop.php, it has this code:
Did you copy the functions file (functions.php) from Twentyten into your theme folder (mytheme)?
No, I hadn’t.
(
)
I got ahead of myself, sorry
Thanks SO much for your reply!
Excellent tutorial thanks a lot.
Pingback: How to Integrate a WordPress Blog Into An Existing Website » Sweet Smarts
Pingback: Its Done! | The Dhenuki Project
Hi and thank you for a great tutorial!
It really helped me, especially the page entitled Different Files for Different Blog Pages. I’ve successfully got all of the pages listed there looking good, and just like the rest of my website. However, the comments page for each of my wordpress blog posts is missing all of the images (as in, the images in my left hand nav, header, etc). Any idea what I can do to fix it? My comments.php page makes no mention of the images (my index.php page does, obviously).
Thank you!
I actually just fixed it! I needed to put the full, proper image URLs in place, rather than the short codes. Thank you again!
I have integrated wordpress in to my local website for displaying the articles posted in the wordpress site. I have written the following code in one of the menus of my local website.
have_posts() ) : ?>
have_posts()) : $my_query->the_post(); ?>
in_the_loop = true;
?>
<div id=”post-”>
<a href="” rel=”bookmark” title=”Permanent Link to “>
<!– by –>
Posted in |
Not Found
Sorry, but you are looking for something that isn’t here.
This page displays the posts in one category. After that if I click on another menu/page it displays blank.
I’m unable to find out the issue. Can any one help me as I’m new to wordpress.
Thanks in advance.
Great tutorial. I have been searching and head scratching for some time before I came across this. Thanks for taking the time to do such a thorough explanation. Saved me tons of time!
After a bit more head scratching, I have figured out that none of my padding/margins are working on the blog page. Which is weird because all the other styles seem to work.
Regular page with working spacing: http://www.ameliaislander.com/articles/article.php?ID=132
Blog: http://www.ameliaislander.com/blogs/blog1/
style.css: http://www.ameliaislander.com/blogs/blog1/wp-content/themes/islander/style.css
If you go back and forth between the 2 pages, you will see what I mean. Any insight you could offer would be hugely appreciated.
I got it. had to be changed
Hello Swolock,
Very nice post, simple, organized and easy to understand, I will forward your post to some of my potential clients if you don’t mind! I wanted to ask also if this was something that you might offer as a service and what that pricing might look like? I have been considering doing the same and would appreciate your thoughts regarding.
Thanks again for nice post!
-Martin Walker
PageInvasion, Local SEO WordPress Plugin
Hello,
I’m glad you found this tutorial interesting. I do offer this as a service. The cost is completely dependent on the complexity of the project. If you like you can contact me directly. Thanks!
OOPS, i meant to say in my first paragraph:
paragraph text of the blog article is the same as Twenty ten,
perhaps you can edit before you (hopefully) approve my comment
This is such a great tutorial. thank you so so much!!!!!
I am having trouble with my CSS.
Even though I import my own CSS stylesheet after the Twentyten import, it’s not over-riding much of the styles. For example my paragraph text of the blog article is not the same as Twenty ten, rather than my own blog’s styling of paragraph text. Or perhaps I am wrong. Perhaps my paragraph text is not what I anticipate it would be, because there is specific styling within Twentyten that targets this text using divs and classes I haven’t send (obviously) in my own site’s CSS. So, the main blog article text isn’t simply a ….? Is that correct?
If the above is correct, would you suggest it’s better simply to not import the Twentyten CSS, and instead, style the blog from scratch myself? (As my blog looks more inline with my sites look and feel just before I import the Twentyten CSS? OR do you suggest that would end up causing headaches and hardships down the line, as Twentyten CSS using some good styles that I am not aware of yet as so far I am only looking at the index.php file?
I know my question is confusing, so please forgive me. I hope it makes some kind of sense. And again, your tutorial is magnifcent!
Katrina
You answered your own question. Your custom CSS just isn’t overriding some of the CSS in TwentyTen because it’s in use in your blog and the only CSS definition is in TwentyTen. You have to specifically add the TwentyTen style to your CSS and override the relevant TwentyTen styles. For example, there may be styles used in ‘branding img’ that you like but you don’t want the big rule above it. So you have to specifically add branding img to your CSS and give it a top border of none. Firebug is very helpful for figuring out what CSS file is controlling what.
As for your question. Is it better simply to not import the Twentyten CSS, and instead, style the blog from scratch, my opinion is it depends. I almost always just create overrides because there are so many styles that TwentyTen provides that I’d rather not mess with. But I’ve done it the other way too. It’s really up to you.
Hi Swolock,
Thanks so much for your reply. I am going to re-download Firebug and see if that helps me. I tried it once before a while ago and didn’t really get the hang of it. But this situation provides a good instance where i should probably wrap my head around it.
Again, thanks for this tutorial, it has been unbelievably helpful. I’ve tried loads of others and got 75% of the way there, but then encountered major stumbling block.
This CSS issue I’m having at least seems surmountable
)
I just wanted to add something that I discovered (took me a long while!!) in case it helps anyone else: I had a div called ‘content’ and there’s also a default WordPress div that uses that same name. So I changed my div to another name and a few things fell into place and looked much better. In hindsight, this should maybe have been one of the first things I checked. In the future, now that I’ll be working with WordPress more, I’ll start to give my divs more unique names.
That’s an excellent observation. Thanks for pointing that out.
Pingback: Finishing touches on styling Wordpress blog to look like main site | GeekFreak
Hi
Thank you so much for the step by step method of description in the tutorial, it is very clear and I wish I had found it sooner.
I couldn’t have done it without your great instructions.
I got stuck up with css styles …
Kindly help me out with minor changes.
1)In header.php, which url has to be provided for bloginfo(‘stylesheet_url’) in the code as below:
<link rel="stylesheet" type="text/css" media="all" href="” />
2) Functionality of the code below:
<link rel="pingback" href="” />
Thanks in advance.
Hi Pummy
Sorry I’m just getting back to you. For question 1, < ?php bloginfo( 'stylesheet_url' ); ?> is the URL that goes there. It’s WordPress talk for getting the child theme stylesheet. Check the WordPress codex for more info. I refer to that page all the time.
Regarding question 2, to be honest I’m not sure of it’s specific function. It obviously has something to do with pingbacks. Maybe someone else reading this can enlighten us.
Pingback: Using PageInvasion On A Non-WordPress Website | PageInvasion
Hi
Thank you so much for the fantastic tutorial, it is so clear and I wish I had found it sooner.
I adapted your tutorial slightly and used it with the templates I had already made for my website and it has worked very well, just a little more styling to do and then it will go live.
I couldn’t have done it without your great instructions.
Thank you.
Hi swolock,
Great tutorial and exactly what I am looking for as not many like this on the web. I am however having some styling issues with the main content area and the sidebar. I have followed the instructions exactly but I seem to get the sidebar on the far right of the screen and the blog entries on the far left but way below the sidebar. They are not on the same level horizontally if that makes sense? I have used the twentyten theme as the basis. Do you know what I am doing wrong? I have imported my own style.css as well. I also noticed that the twentyten theme has the sidebar call inside the index.php file not the header.php. What file should I calling in the loop as well?
Many thanks!!
Sifi
Hi Sifi,
It’s a little hard to tell what’s going on without seeing it and the CSS, but it sounds like it has to do the div that constrains the page width. The content is floating all the over to the left and the sidebar to right. Maybe the CSS for the div that sets the page width is not set at the right amount. It’s hard to say without having a look.
An additional problem is that the content is below the sidebar. That can happen because the width of the either the sidebar or the content or both is too wide and is pushing the content underneath the sidebar. Try adjusting the content and sidebar widths.
Or it could be that you aren’t ‘clearing’ the two divs. This is a little complicated to explain with just words but to clear them try putting a br with style=”clear:both;” in it just before the closing /div tag that contains both the content div and the sidebar div. This should clear both the content and sidebar divs. I can’t tell you exactly where to put it because I have nothing to look at.
Feel free to post your URL and I can have a look. Good luck.
Thank’s very much. I’ll certainly give that a try tonight. I’m working on it locally so can’t post up a link im afraid. I can email you the code if that helps?
I’ve having the exact same issue. I’ve adjusted the widths of the main content and the sidebar to some pretty small sizes and the content is still below the sidebar.
Not sure what you mean by the tag that combines both the sidebar and content — it seems to me that the sidebar div is closed before the main content div starts?
The bottom of my header.php:
Website is at http://www.solarallianceofamerica.com/blog/
Thanks!
I checked out your blog and thought it looked OK. Did you figure it out?
If anyone else is having a similar problem, that is if I understand what you’re saying, one thing you might need to do is “clear” the floats. So if you have a div that’s floating left and a div next to it that’s also floating, most likely right, you may need to add some CSS to clear the two floats. I like to do that with following:
br style="clear:both;". That puts in abrthat you can’t see and tells it to clear both floats. Of course the best way to do that would be to create a CSS style like.clearboth { clear:both; }and assign the class “clearboth” to thebr, a labr class="clearboth".There are other ways to do this, but this is one technique that I like.
I hope that helps.
Hi,
This is a great tutorial, thanks for putting it up. Do you have some ideas on what I should do to get the blog site look which is at http://www.shaldipur.com/blog to match the regular website look which is at http://www.shaldipur.com?
Among the problems I have are two headers and two footers, a nav that has the contact link push down when viewed in Firefox as well as a search box that I would like to remove. If you have any suggestions I would be very grateful.
Thanks.
Hi Sachin,
Here’s a suggestion you may not like very much, do your whole sight with WordPress. There’s no reason you can’t get the same look using a child theme of Twenty Ten or Twenty Eleven. FYI, although Twenty Eleven works well and is HTML5 (it can do some very cool stuff), I almost always use Twenty Ten as my child theme parent. This tutorial is good for people who already have content AND are using PHP includes AND don’t want to start from scratch. Sometimes, and I think this is one of those cases, it’s more efficient to start from scratch. WordPress can be an admirable content management system. This site, http://www.tru-block.com/ and http://zanyaspasalon.com/ are examples of Twenty Ten child themes. Here’s a good article on WordPress child themes. I hope all goes well.
Thanks Swolock , I’ll give that a try.
Pingback: spikeRush now has a BLOG! | spikerush
Greetings!
Thanks for a great tutorial.!
My attempt to follow along is pretty close to working, but I can’t seem to get over the finish line. I have the include calls working, including my placeholder nav flyouts, I’ve updated the PHP files and checked things over, but I’m off on something … probably looking right at it and missing it.
Could you kindly take a look at http://todcohen.com/blog/ and see if anything jumps out at you? It looks kinda like the CSS is broken, but I’ve tried a couple of tests and the page reacts to the tests, yet the contents are just not where they’re supposed to be.
Thanks in advance!
Chuck
Aha … I had some bad CSS going on, including a bad call. Mainly hadn’t matched my div names in header.php to the ones I’m using in style.css.
I’m getting it to behave ….
Thanks!
Chuck
Hi Chuck
I’m glad you’re getting your CSS to cooperate. It can be a bear sometimes.
HI, I appreciate this tutorial. Ive gone through it and have my header and footer working perfectly, but I am now having trouble with the final css editing of the body.
My “mainContent” (the area where posts are shown) is stuck below the sidebar, instead of being next to it. I can’t figure out how to fix it.
Also the body text is white, and therefore invisible against white background!
I can’t figure out what css tags to fix, ive been trying everything i can think of. Any advice would be appreciated.
ok, i figured out the text colour, but my main issue seems to be that i don’t get how the layout works for this theme; content, container, mainContent, …*$&^%$….
Hi Matt
There’s an INDISPENSABLE tool for figuring out CSS. It’s a Firefox extension called Firebug. It let’s you inspect and try out modifications to the CSS on a webpage. I use it all the time. You can get Firebug or similar for other browsers but it works best with Firefox.
As for your misaligned body parts, it’s probably the width of one or the other or both. Try reducing the CSS width, for example change
width: 650;towidth: 400;to see what happens. If your parts pop back into place then begin making them wider.First, thank you for your tutorial!
However, after following instructions on the first page and setting up the new files in the appropriate places at my website, when I click “preview” I do not get a blank page but rather the 2011 theme. Any suggestions?
John
Ah! Nevermind. I made the mistake of saving the file as a Textedit HTML. My bad. Redone and now properly blank!
John
First, I want to say this is a great tutorial, its very clear step by step explaination, Thank you for taking time writing this:
Second….On Page 2 “Prepare your navigation or menu file”:
“Open your current menu or navigation include file. For the demo site it’s nav.php and is in the website’s includes folder, so includes/nav.php.”
x————————————————–x
I can only see “nav-menu-template.php” and “nav-menu.php” inside wp-includes folder. Or am I at the wrong folder? what’s a demo site?
APrather, I think you maybe looking in the wrong spot.
First, the demo site is the site I created for this tutorial. Check it out. It’s mentioned on page 1 of the tutorial. It’s a regular PHP website that has a WordPress blog added to it.
So… includes/nav.php is the nav or menu file used in the original PHP site, not the WordPress blog. That step is only asking you to add a navigation link to the blog-to-be in your currently used navigation file. You’ll save that file to your theme’s folder in later on page 3.
FYI, I never change anything in the WordPress installation’s includes directory, it’s called wp-includes, not to be confused with your PHP site’s includes folder.
This is very good tutorial. What I need to know is, if we can use another theme instead of twenty ten or not. What can be the issues if we use some other themes.
Thanks for the great tutorial.
Nitin
Hi Nitin,
You can definitely use other themes if you want to. But be warned that the code in other themes will almost certainly differ from the examples used in the tutorial. I’ve made child themes from themes other than twenty ten but always seem to go back to twenty ten. It’s straightforward and very flexible.
As I look through several sites about how to integrate a WordPress blog into an existing website, yours has been the most comprehensible (is that a word?). But what I don’t understand yet is if I am copying my site files (header.php, nav.php, footer.php, etc.) into the WordPress themes folder and editing them, when I change the site files in the future, do I have to change them in both places? Does my question make sense? For example, if a phone number is listed on site’s footer and it changes, now I just change it in that one file and it’s updated for the whole site. Would I also have to change it in the Worpress-enabled files under /themes/? Thanks.
The short answer is yes, you do have to edit them in both places. I know that’s awkward and not ideal but it’s the most expedient way that I can think of. It’s unlikely you’ll be changing them too much. Just be careful what you call them so it’s easy to distinguish the files used for your existing site from the new files AND that you don’t overwrite an important WordPress file like header.php or footer.php.
I solved that way:
1) i have put in the root the -block- files:
block_1_header.php
block_2_nav.php
block_3_content.php
block_4_footer.php
inside these files i wrote all the code i needed to ECHO what i wanted
2) i created four files in the blog/wp-content/themes/mytheme folder, named the same. inside them i’ve put just a line of code. in the case of header, for example:
3) because i use some functions and website config variables (company name, seo, sitemap, etc) i’ve put this line of code at the beginning of my /index.php (in the root) and blog/wp-content/themes/mytheme/index.php files:
4) in every block files (the original files in the root) i’ve put this line of code:
global $config; // $config is the name of the array created in my config.php file
that way, if the block files are included by wordpress, the $config variable is seen everytime
exscuse me for my english!
Thanks for putting together another great tutorial! One thing I found easier was to simply copy one of the style.css files from the theme in the latest version of WordPress. Add that to your own theme rather than referencing the original style sheet. Means you can have totally seperate style sheets then. Made it easier for me anyway!
Hi Megan,
Thanks for your suggestion. That method certainly could work. I guess it just seems more efficient to accomplish the same thing with one simple line of code.
Steve