Using my custom page or template (8 posts)

  1. BestBooks
    Posted 8 years ago #

    Hi Everyone,

    I have created a page/template that I have WordPress pointing to. Everything looks great except for one thing.

    WordPress is making apostrophes into characters or something and I don't know how to fix it.

    Here is the url:


    You can see where apostrophes should be, there are questions marks in diamonds or something instead.

    Can someone please help as to why this could be happening.

    Thank you.

  2. BestBooks
    Posted 8 years ago #

    I resolved this issue.

    When I uploaded the php file, somehow, apostrophes were converted to questions marks. Looked in Theme Editor for the file and saw where this was happening. So just actually edited the file in WordPress, saved it and fixed the problem.

  3. moshu
    Posted 8 years ago #

    Even simpler: whenever you edit a theme file in a text editor make sure you save it with the proper encoding! (= utf-8)

  4. BestBooks
    Posted 8 years ago #

    Oh, right! hehe. Thanks Moshu.

    I have another question. (Of course).

    The template I created is just like a page. And I need to create lots more, but I don't want the Theme Editor to be cluttered with all of these different templates.

    I am trying to figure out how I can have CSS code for the template, and then write the text in Manage-->Write-->Pages, and WordPress be able to know how to format the pages.

    Basically, all the pages will have the same formatting. So I just want to have one template that I created and write pages in WordPress that will use the CSS for the custom template I created.

    Here is an example of some code I have for the template:

    <style type="text/css">
    body {background-color: #C0C0C0}
    .simple { background-color: #FFFFFF; width: 590px; padding: 20px; border: 1px solid #FF0000 }

    Here's the url of the page I uploaded to the Theme Editor. I named it Squeeze.php


    I hope this makes sense.

  5. moshu
    Posted 8 years ago #

    Here's the url of the page I uploaded to the Theme Editor. It named it Squeeze.php

    Sorry, I am always confused by sentences like above.
    in WP you do NOT upload a Page (as in Pages. You create Pages in the admin panel. "squezzee.php" should be a Page template (btw, make a habit to have lower case file names!) - and you can create unlimited number of Pages using the same template. However, you can NOT put CSS code in a template, at least not in the way you wrote it above.

  6. BestBooks
    Posted 8 years ago #

    Oops. I should have said Here's the url of the template I uploaded to my theme

    I also changed the name to lowercase. :)

    Hmm. I do have that code in the template. And it formats the page exactly like I want it to.


    I'm just trying to figure out now how I can use my custom template to write pages and it format it correctly.

    This is so hard for me to explain. I wish you could log into my Admin panel. You could see exactly what I have done and what I am trying to accomplish.

    I can give you my login info if you want.

  7. moshu
    Posted 8 years ago #

    You can not explain it because it is completely wrong what you are doing. Try to validate that Page and you will see what I am talking about:
    That's an incomplete web page (and that's independent of WP) - it just plain wrong code.

  8. BestBooks
    Posted 8 years ago #

    Hmm. Well how do I do what I am trying to? Think for me Moshu!

    Well, just need to do more reading I guess. But anymore more help would be great.

Topic Closed

This topic has been closed to new replies.

About this Topic