WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change width in F2 theme for a single page (7 posts)

  1. dsbacon
    Member
    Posted 4 years ago #

    I am using the F2 theme and need to embed an iframe with a property-search IDX on a single page, removing the sidebars and widening the main column. I have figured out how to remove the sidebars for the page using a conditional statement and the page id, but I'm banging my head against the wall trying to figure out how to widen the column to fit the iframe. I really appreciate any help!

  2. dsbacon
    Member
    Posted 4 years ago #

    Here is the page link:

  3. dsbacon
    Member
    Posted 4 years ago #

    That was strange, the link was blanked out. I'll try again...

    http://www.baconrealtygroup.com/?page_id=57

  4. henkholland
    Member
    Posted 4 years ago #

    dsbacon, I think this route is easier:
    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    but, upon refreshing your site I see you already managed.

  5. dsbacon
    Member
    Posted 4 years ago #

    Thanks henkholland! I went down that road but was not able to make it work. The theme developer generously sent me a solution. It turned out to be quite easy. Here it is for anyone else who may stumble across this post.

    First remove the sidebar call for the particular page at the bottom of page.php, as detailed in this post: http://wordpress.org/support/topic/168199?replies=5.

    After that, make the following change to functions.php:

    On line 438, you'll find code

    if($sidebar_r == 'off')

    replace it with

    if($sidebar_r == 'off' || is_page(57))

    Similarly replace line 452 with

    if($sidebar_l == 'off' || is_page(57))

    That's it!

  6. Anton
    Member
    Posted 4 years ago #

    Hello,

    This solution still doesn't work for me. My sidebars are still overlapping the one page. Could someone please advise?

    Thanks!

  7. Anton
    Member
    Posted 4 years ago #

    Hello,

    Eventually this solution solved my problem. There is only one thing you should consider. In the example, the page id number is mentioned. At first I changed this id number to the page title:
    if($sidebar_r == 'off' || is_page(shop))
    This doesn't solve the problem, you MUST use the page id number in the functions.php and MUST NOT use the page name.
    With the assistance of the theme developer we found that out.
    Now my page looks like this and I am satisfied:
    http://www.doordebenen.nl/shop-2/

Topic Closed

This topic has been closed to new replies.

About this Topic