• I am new to WordPress and the site I am administrating already has a theme and child theme. The themes are inflexible in that they do not allow a side bar at the correct position. I am trying to create a flexible system so I can create pages with a list of navigable links on the left hand side and use it as a template so I can create the same type of page easier the next time and only have to type in the links once.

    The have a custom html menu page and a collection of child pages. You click a menu item to change the page on the right. The pages are in iframes on a blank page using the blank slate template.

    This is working correctly but I want the whole page to be inside a page using the websites theme. However no matter what I try that outermost iframe does not seem to be able to have width large enough to display its full content. I have tried plugins and styles with explicit widths inline. Nothing seems to work. Has anyone run across this situation and know how to solve it?

    Thanks,
    Greg

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The <iframe> tag is notorious for being difficult to style.
    I suggest you get rid of all iframes. Simply switch themes to one that has a sidebar and it will be a lot easier.

    Thread Starter gregoryew

    (@gregoryew)

    Thanks for the help unfortunately the client does not want to change the theme. Does anyone know of a way to fix the problem without changing the theme or child theme?

    You can easily make a theme look just like the one you have, you know.
    Most site do what you want without iframes. There are very few sites using iframes in themes, especially the ones that are in the WP repository (since that is not allowed), and those themes are the only ones discussed here in these forums.

    Moderator bcworkz

    (@bcworkz)

    Content width can be managed in multiple ways. Expanding what a theme does for its default width can be very involved or super simple. Use your browser’s element inspector developer tool to help you determine what is restricting widths and what rules need to be overridden to gain greater width. Don’t forget rules either need to work at multiple viewport widths or need overriding media queries.

    I agree that iframes are a poor organizational scheme. Using tables for layout of non-tabular data is also questionable. But the reality of budget and time constraints factor into what corrective action is warranted.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Do iFrames have a maximum width in WordPress’ is closed to new replies.