WordPress.org

Ready to get started?Download WordPress

Forums

Custom WordPress Site (7 posts)

  1. jackfungi
    Member
    Posted 2 years ago #

    I would like to add a custom word press page to my site mahtomedigreen.org.
    By custom I mean that I want to have a custom width. I am trying to embed an iFrame that is too wide for the current defaults.

    Any suggestions?

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    You can change the width on virtually all themes / pages -- depending on the coding, sometimes it's very simple in the CSS styles, other times you might have to modify the php file.

  3. Gary Darling
    Member
    Posted 2 years ago #

    If you want only the one page to have a custom width you can either isolate it with css using the body_class() output: .page-id-(your page id) {width:1000px;} or you could create a custom template that you choose when you create the page. See:
    http://codex.wordpress.org/Template_Hierarchy#The_Template_Hierarchy_In_Detail

  4. jackfungi
    Member
    Posted 2 years ago #

    I think I want to use the body_class()

    Would I add this as a new definition in the stylesheet or add it into the html of the page or change the php file?! sorry i'm a css amateur.
    Thanks for your help thus far.

  5. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    It needs to be added to your theme's header.php template file. See http://codex.wordpress.org/Function_Reference/body_class

  6. jackfungi
    Member
    Posted 2 years ago #

    How exactly would I add it into the header.php

    I'm really dumb

  7. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Please try reading the page at the link I posted above - especially the Examples section (big hint).

Topic Closed

This topic has been closed to new replies.

About this Topic