Forums

how can i create a blank page, just with content? (19 posts)

  1. Ronnie
    Member
    Posted 1 year ago #

    in my 'portal' page i have a flash graphic and URL link.

    i'd love to have these alone on a completely blank page, with no header, sidebars, footer or anything.

    can someone please help?

    http://www.transformingscotland.com

  2. Ronnie
    Member
    Posted 1 year ago #

    i've been able to create and use a new page template, removing the header, footer and sidebar. but the content remains aligned to the left, and theres a pink margin to the right (which you can see just now in the sidebar)

    can someone please advise how i might be able to get rid of the pink margin and have the content centred in the page?

  3. Ronnie
    Member
    Posted 1 year ago #

    it seems the only way i can post the embeded flash content that i want to post in this page is by including the header. which is okay.

    but when i include the header it comes bundled with the pink right side margin !!

    can someone help me please get rid of this margin?

    i've stretched the flash object across the page to cover most of it but some of it still shows at the top and bottom right. its very annoying.

  4. Ronnie
    Member
    Posted 1 year ago #

    help!? can anyone offer any advice please

  5. Ronnie
    Member
    Posted 1 year ago #

    i'm lost, what can i do?

    do i need to amend header.php somehow to exclude the margin from showing up in this particular page template?

  6. SpankMarvin
    Member
    Posted 1 year ago #

    In your theme template, create a new page template with an appropriate name:

    /*
    Template Name: Custom
    */

    Copy the header.php code and paste into the new page template. Remove the offending code. Then you should be able to manually add the flash file, or any additional content. Close any open tags. Upload the page template.

    In WordPress, create a new page, don't worry about content (as you're not including the loop in your page template), choose the new template as the template for this page, and publish. Set this page as your home page.

    Any help?

    John

  7. Ronnie
    Member
    Posted 1 year ago #

    thanks john, i'm just going to do it now

    one thing i'm not sure of is "set this page as your home page".... i'd like the homepage and other pages to remain intact, its just the one 'Portal' page that i wish to change

    unless i've picked you up wrong

  8. SpankMarvin
    Member
    Posted 1 year ago #

    Oh that's fine. Just designate the newly made template to the page you wish to be the portal. That should do it...

    J

  9. Ronnie
    Member
    Posted 1 year ago #

    thanks i've made a new template withe the header code and its up there just now under page 'test'

    i put the word 'test' also within the page content buts it s now showing up

    is there something i've overlooked?

    for now i've not amended any of the header code, just inserted the new template name at the top of the file

  10. zeniph
    Member
    Posted 1 year ago #

    you've included
    <?php the_content(); ?>
    in your new template?

    But from reading the above I thought you were going to hardcode flash into your template - not add it from the wordpress backend...

  11. Ronnie
    Member
    Posted 1 year ago #

    i'm using the kimili flash embed plugin, so need the content
    i wouldn't know how to do it any other wise

    was using a blank template but couldn't call the content and have it in the centre of the page.... without calling the header too

    decided it was okay to have the header, so followed up on what spankmarvin mentions re: put the header code into the blank template

    and this is where i'm at, and it loads the page but i can't see any content (the footer is alos there and i'm guessing the sidebar and margin will be so too)

    http://www.transformingscotland.com/?page_id=2313

    so i'm really at the beginning still. looking to have a blank page so that i can centre the content and have the embeded flash object there

    don't mind having the header as long as i can get rid of the sidebar and its pink margin

    thanks for any advice

  12. zeniph
    Member
    Posted 1 year ago #

    Well it looks like your just missing the content

    So make sure your new template has a loop and the the_content tag (as above). You can most likely fins and copy this out of your index.php (though you may have to selectively remove sidebat code).

    To summarise, you could take a copy of index.php, name it my-custom-template.php or whatever, insert new template name at top as SpankMarvin said, selectively remove sidebar code (or if sidebar is embedded in header or footer copy them and reference the copy you make header2.php or footer2.php), adjust css classes on content DIVs to refer to fullwidth as required.

    z

  13. SpankMarvin
    Member
    Posted 1 year ago #

    zeniph is right. Where includes contain code you don't want, copy the include code and replace the include with that code, then selectively remove unwanted code.

    I had assumed before that you didn't want content from the loop in the page, so I omitted the content portion of the template. Sorry about that.

  14. Ronnie
    Member
    Posted 1 year ago #

    no worries spank thanks guys for your time, i really appreciate it

    i've used the index.php code as is in the new template
    http://pastebin.com/TYaD4TKL

    but i'm not sure where to start because the page is showing up and contents looks to be called, and there seems to be a loop. (excuse me its going a wee bit over my head just now)

    http://www.transformingscotland.com/?page_id=2313

  15. Ronnie
    Member
    Posted 1 year ago #

    what i have here just now in my 'portal' page is okay... content is fine. http://www.transformingscotland.com/?page_id=2288

    i can't though pin down where the pink margin originates on the right hand side. it comes embeded within header.php, but i can't tell where the code is.. and there's no obvious reference in sidebar.php

    header: http://pastebin.com/wFb0XpPR

    sidebar: http://pastebin.com/1vKrtLyA

    style: http://pastebin.com/GSh7nYem

  16. Ronnie
    Member
    Posted 1 year ago #

    To summarise, you could take a copy of index.php, name it my-custom-template.php or whatever, insert new template name at top as SpankMarvin said, selectively remove sidebar code (or if sidebar is embedded in header or footer copy them and reference the copy you make header2.php or footer2.php), adjust css classes on content DIVs to refer to fullwidth as required.

    the offending pink sidebar margin seems to be embeded into the header

    how and where do i reference the copy made of header.php (header2.php)?
    within the new template i see only <?php get_header(); ?> as reference to the header

    thank you

  17. Ronnie
    Member
    Posted 1 year ago #

    the pink sidebar is within contentwrap which calls the offending contentwrap.png

    i've edited this file now removing the pink sidebar so now have a content2.png

    i created a new entry in the css within the Layout section named #contentwrap2 which is a copy of the existing #contentwrap but containing reference to the new contentwrap2.png file

    i edited the template from <div class="span-24" id="contentwrap"> to <div class="span-24" id="contentwrap2">

    it hasn't worked, giving me a black coloured content area instead

    can someone please advise on what i've missed?

  18. Ronnie
    Member
    Posted 1 year ago #

    i removed the other bits of code in the CSS from #contentwrap2 which i copied from #contentwrap and it looks now to be working better

  19. Ronnie
    Member
    Posted 1 year ago #

    case closed, i think.... thanks for your help guys

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.