EDIT (2009-03-26) This article has been getting quite a few hits recently and I just wanted to comment. It is VERY old, this technique was a sloppy hack to begin with. Feel free to try to duplicate but I don’t have RapidWeaver anymore so I can’t really fix it. The WordPress theme files can be grabbed from my /dump/. This article has barely survived the transition from different platforms so most of the reference to code are garbled.
I mentioned previously that I just found an awesome web design program for those (like me) who are not interested in learning too much about web design but still want a nice looking website.
RapidWeaver really kicks @ss. The only problem is their blog plugin lacks several important features:
- There are no permalinks.
- There is no way to view individual posts.
- There is no way to search.
- There is no ping service support.
- There is no way to import WordPress posts into RapidWeaver.
- There is no (easy) way to export RapidWeaver posts, i.e. you are (sort of) locked in.
I searched around on RapidWeaver’s Forum to see if there were any solutions to these problems and for the most part there are not. So then I started looking for a way to integrate WordPress and RapidWeaver. Nobody had done so yet, so I decided to take on the task.
At first I tried to just do a styled page and include the WordPress body using PHP. That worked fine for a very limited case but to really get the full functionality of WordPress I would have to make a theme for WordPress that matched RapidWeaver.
What I have been able to do is to make a theme that requires only modest changes to integrate with RapidWeaver.
There are just two files you have to update to get it setup at first, and then only one section of one file you have to update when you change the sidebar layout or theme in RapidWeaver.
You will have to install WordPress on your server. Create a Offsite Page page in RapidWeaver and link it to the directory you installed WordPress in, i.e. http://yourdomain.com/blog/.
Get Started
Download my RapidPress theme and then make the following changes to footer.php and header.php.
Open the source code of one of your RapidWeaver pages from your web browser. Then you will cut and paste parts of this page into the following two files:
footer.php
Edit footer.php to fit your footer from your RW page:
>
You should only have to modify the shown part of the footer.php to match your sites footer or remove the footer entirely as shown below.
>
header.php
Copy from the very first line down to and including (this extends all the way down into the body, for me it is 87 lines but this obviously depends on how many pages you have in your menu, the theme, etc.):
>
<
div>
> …
>
and paste this into header.php.
Change the page title to whatever you want (in the head):
>
Add your blog to the navigation container (the very beginning of the body):
>
and remove:
> id=”current” > name=”current”
from whichever page had it.
Now for each of the links in sidebar besides the link to your blog add a preceding forward slash / to each link so that it is an absolute link and will work since WP is not necessarily on the same level as RW’s files.:
>
Then you just upload the RapidPress theme folder into the themes directory of your WordPress install, i.e. yourwordpressdir/wp-content/themes/. Then in WordPress Admin select the RapidPress theme.
Let me know if it works or not, I can’t promise I’ll be able to help because I may not know how or I might be to busy, but I’ll try.
Tweet This
Comments (8)
Awesome! I’ve been wanting to fix up a new layout for my site, but got tired of fiddling around with WordPress themes and haven’t really been able to design a site myself, and just found out about RapidWeaver tonight. I was hoping there would be some method of importing from WordPress, and found your site – I’ll have to give it a try… I’m going to wait until version 3.5 comes out before I consider getting it, but once I do I know where to go to get my old site transferred!
It is kind of weird but I have been contacted twice today about this. A fellow named Daniel messaged me because he was setting up his own site http://www.morefog.com/news/ using this tip.
RapidWeaver is pretty cool. I hope they speed up the load time when using Photo Albums, but other than that I have really enjoyed using it.
Hi, I’m so happy to come across this – have been using WordPress for a while and don’t want to settle for RapidWeaver’s very simple blog. But I do love RapidWeaver and this seems the perfect way of integrating them. I have (quite) a few problems, though. It seems there are many things I need to change (in header.php) – the whole menu, headlines etc. Is it me doing something wrong or is it like that? Anyways, hope you have the time to answer – I really appreciate putting this them + instuctions out to the rest of us.
I have updated it a bit see if it helps. Download
It now works flawlessly! Thanks a bunch!
Thanks a lot. This is great. I’m going to do an exchange this year (Germany<->Canadia) and i’m searching for a blogging solution. I already have an Rapidweaver Blog called SnowboardMacPunk” and i wanted to go on with blogging in Canada but i don’t know if i got Internet or just an Internet Cafe. If i just got the Cafe i can’t use RW for blogging and so i thought about creating a new page with WordPress. But i don’t wanted to miss the actualk Layout. Your solution is exactly what i searched for. THANKS A LOT!
Hi,
Concerning the changes to be made to header.php…
Do I have to copy from till the end of my blog? Or everything from the beginning?
Thanks for all the work!
Everything from the beginning.