• Hello, New here.

    I am using Twenty Ten theme. I am just trying to understand the “strategy” of having a “flash” header on the home page only?

    Yes, my client wants Flash on the home page, but I do not have this header on the remaining pages. Could someone please explain the “strategy” that would be used to accomplish this in WP?

    Better yet, if I wanted to have a different Flash header on the remaining pages, what would be the correct way to accomplish this as well? I’m just trying to technically put the pieces together.
    Here is a link to my site (not that you will probably need it.)
    Thank you, Buffmin

Viewing 4 replies - 1 through 4 (of 4 total)
  • @buffmin2

    Use the following code in your header, place the flash code after the if statement for the homepage and the alternative code after the else statement.

    <?php if(is_front_page() ) { ?>
    <?php } else { ?>
    <?php } ?>

    Hope that does the trick.

    ^JD

    Thread Starter Buffmin2

    (@buffmin2)

    Perfect James. Thanks. I understand the if loop and can do that. Cool.

    One more question. As I am really new to WP, how would you think I should remove the white area above my flash? (Where it says WordPress Practice Site & “just another WordPress Site”). https://doubledoubleny.com/

    I could show you my header.php code, but am assuming there is a easy answer to a newbie like me.

    PS: I am tempted to just jump in and edit the html using Dreamweaver, ut am trying to do these things the correct way. Thank you.

    @buffmin2

    Would you like to move the flash content upwards or would you like the title and the description removing all together?

    If you’d like them removing all together remove the following code from your header.php file. (Obviously it’ll look slightly different containing tags instead of content)

    <h1 id="site-title">
    <span>
    <a href="https://test22.cnjwebsolutions.com/" title="WordPress Practice site" rel="home">WordPress Practice site</a>
    </span>
    </h1>
    <div id="site-description">Just another WordPress site</div>

    Or if you’d like the space below and above the text you’ll need to edit the css file and locate the #header tag and adjust the padding as you require.

    ^JD

    Thread Starter Buffmin2

    (@buffmin2)

    Wow,
    yeah that worked. Thanks. I expected to see the h1 tag, etc, but I see h1 tags etc, but I see that it uses like……………..
    ?php echo $heading_tag so you have to kind of understand the php a bit which is cool, as I am somewhat comfortable with it.

    Question…….. You are obviously comfortable with WordPress.
    I am comfortable with html, CSS & php somewhat.

    I have always built sites from scratch, but understand that it is to my advantage to start using WP (for the plugins,etc) and am told that I will be able to build larger sites much faster than hand coding.

    Am I just overwhelmed at the moment (ha!)? Once the structure and do’s and how’s of editing WP themes sinks in, is it really fairly easy to use and edit? I am hoping! Thank you again! Buffmin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to have different flash header on 2nd page?’ is closed to new replies.