Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Porting

#1 2005-12-17 22:31:52

Alex McKee
Member
From: Gloucester, UK
Registered: 2005-12-17
Posts: 59
Website

Porting

I’ve seen several themes ported from WordPress. How do you go about it?

I’ve a client who’s found a beautiful wordpress template and wants his design to be similar, so I thought it would be easier to port it to TextPattern (her site already has TXP installed by me and nearly all ready to use) and she had a change of mind late (she wanted to play about with the CSS herself).

The WordPress template comes with a plugin and a themeset, and although I’m quite willing to learn how to do it myself I thought I might as well pick your brains too :D

Cheers,

Alex

Offline

#2 2005-12-18 06:15:01

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Porting

It does help if you know your way around TXP and WP with your eyes shut but it’s also a good way of learning. Basically I start by uploading the images to TXP then copy/pasting the CSS across as well. I usually just overwrite the default but you can create a new style sheet if you prefer. Remember if you do this to go to the “Sections” tab and allocate the new CSS to each section. Don’t forget to change the image URLs in the CSS to match the TXP image ids.

Now you need to have an editor open to view the WP header, index, footer, comments, sidebar and what-ever-else files whilst you also have TXP admin open at the page and form templates screens. You need to get the HTML in TXP to match the WP version so that will require checking the default and archive page templates along with the comments, comments_form, comments_display and default form templates as well as creating any new ones for the footer, sidebar, top_nav, header etc. I would advise you not to try and match the comments_form in TXP exactly as WP has it. WP uses a load of PHP in it’s form. Just keep it simple and make the colours match the style.

You will also find that you can’t use certain selectors that WP uses. TXP has certain ones built in to it which you can’t change such as the “ol” for the comments list and the “id” for the comment entry form. For things like this you need to change the selector names in the new CSS to match what TXP has rather than the other way round.

Easy really. Just takes time and patience. As you are new to it I would allow a couple of days for the job then another day for little nit-picking items you missed the first time around. As for the plug-in it depends what it does and whether there is anything suitable in TXP or maybe TXP does it anyway.

Last edited by thebombsite (2005-12-18 06:22:51)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-18 12:56:27

Alex McKee
Member
From: Gloucester, UK
Registered: 2005-12-17
Posts: 59
Website

Re: Porting

Thanks Stuart. I actually know Textpattern well, but WP is new to me. I have created bespoke sites using TXP but since the client wants this particular look . . .

That was kind of how I was going to do it, just thought there might be some easy magic way of doing it lol!

Cheers,

Alex

Offline

#4 2005-12-18 14:54:01

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Porting

I’m afraid not, at least not for the porting side of it. There may be devlopments on the “installing a new theme” side of things in the future but it isn’t top-priority at the moment and isn’t going to help us port styles anyway.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

  1. Index
  2. » Archives
  3. » Porting

Board footer

Powered by FluxBB