Static Home Page Problem
-
I set up a static page for my wordpress solution. I use this solution to do it:
Admin Area/Settings/Reading
1) Chose A Static page
2) set Home as my Front page
3)… and Blog as my Posts pageThen I tried this code to have a flash swf on my Front page:
This is only the end of header.php
</div><!-- #masthead --> </div><!-- #header --> <!-- Include swf only for home page --> <?php if(is_home()): ?> <div id="hm_swf"> <!-- Put here the swf code --> <embed src="https://www.mywebsite.no/wordpress/wp-content/flash/bannerliten.swf" quality="high" bgcolor="#ffffff" width="960" height="228" name="bannerliten" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="https://www.adobe.com/go/getflashplayer" /> </div> <?php endif; ?> <!-- Include swf only for home page --> <div id="main">
As you can see, this code should bring up the frontpage:
<?php if(is_home()): ?>
.. but my problem is that the flash swf only show up on my blog page. I recognize that my flash swf is working inside there, but why did WordPress define Blog as Home and not the actual homepage itself?
See the site here: https://www.multiarena.no/wordpress/
Hjem = Home
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Static Home Page Problem’ is closed to new replies.