• Hello, I am not sure what is the safest way to put a <div> containing some text (with html tags linked to style.css file): <h1>business name</h1> <p>a business address</p> and an iframe with Google maps code (address locator). Is it ok to put it in the header.php (using absolute positioning), or is it better to use pages content area in Word Press?

    Theme TwentyTen.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Use the page content area unless you want to start creating a child theme.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You can put as much content as you want within the header.php file. If you’re talking about the <header> section, then you should really only have a at least 1 heading and your navigation in there.

    Remember, you shouldn’t modify the theme’s files. When the theme updates, modifications to the theme’s files will erase. You can also compromise the theme by modifying it. There’s another issue with debugging if you’ve modified the original theme.

    To save yourself a migraine, create a Child Theme and make modifications within there.

    Thread Starter sandra408

    (@sandra408)

    OK, thanks everyone.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding an iframe code to the header.php’ is closed to new replies.