Treehouse: Grow your CSS skills. Land your dream job.

WordPress CMS Question

  • # September 18, 2012 at 11:44 pm

    I know this video is old but I loved how this guy made his website look exactly how it was supposed to in the visual editor by creating a page template a pasting in his HTML code.

    Is this still the recommened method to use WordPress as a CMS? I’m a newbie when it comes to wordpress. This guy is using tables… could you use a stylesheet inside with the visual/html editors in WordPress?

    What are some great resources for this?

    # September 19, 2012 at 12:17 am

    Do you mean a stylesheet or inline-styling? You can attach a stylesheet in the header of WordPress but not in the html editor as that is where you place your body content.

    # September 19, 2012 at 10:22 am

    I meaning a stylesheet. I thought you could do it through the header.php. Is this the best way to handle wordpress as a CMS for a client perspective?…. or is it bad because they could mess up something in the HTML?

    # September 19, 2012 at 10:42 am

    You can. That’s what I mean by the header of WordPress. I should have said the head section. For a client, they should only be posting in the visual editor.

    However, if you’re putting the content in for them, then you should do the same by placing the content inside the visual editor so if they wanted to make simple changes, they can.

    # September 25, 2012 at 5:17 pm

    I pasted my HTML into the HTML Editor in the WordPress Dashboard->Pages.

    The visual side’s links are broken and isn’t picking up any of my styles. How can I make the visual part look more like the page?

    # September 25, 2012 at 10:04 pm

    Ok so you can’t paste PHP code into the wordpress HTML editor. So how do you link to an image???? I tried doing it statically but the paths were still broken.

    # September 26, 2012 at 9:47 am

    Above the editor, there’s a button you can click to upload images. There will be an option to insert the image into the editor.

    P.S. You don’t need to create template pages for each page of a website like the video suggests. Usually template pages are used when the page is unique from the other pages on the site. If all the pages will use the same styling, you wouldn’t need a custom template page, you could use the standard page.php file to style all the pages.

    # September 26, 2012 at 9:55 am

    You might also want to check out Chris’s video about WordPress.

    # September 26, 2012 at 10:20 pm

    Thanks for the help!! I’m trying to modify my page.php file but it comes up blank…

    Here’s my code:

    < ?php

    get_header(); ?>

    < ?php if (have_posts()) : while (have_posts()) : the_post();?>

    < ?php if(is_front_page()) {

    } ?>

    < ?php the_content(); ?>
    < ?php endwhile; endif; ?>

    < ?php get_footer(); ?>

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.