• I’m new and am just using the default theme, although I’ve tried a few others.

    It’s important for my blog to have a colorful link to a static page where I’m using a form to gather visitor input. My question is what is the best way to add a graphic that links to a static page I create via the Pages option.

    To be clear, I don’t have any problems creating the pages or forms, but am struggling in creating and placing the graphic on the home page.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • 1. Creating a graphic has nothing to do with Wp. Go to an image diting forum.
    2. The nest question is: whether you want the graphic in a post (aka content) or in a template file?

    Thread Starter insider1

    (@insider1)

    I have no problem creating the graphic, but I don’t understand how to place it in the template file. I don’t want it in a post, it has to be ‘sticky’ and always able to be seen by viewers no matter where they are in the blog.

    Thanks.

    This might help to understand which template file is used for different displayes: Template_Hierarchy.

    I guess you may want to put you graphic in the index.php fileof your theme – just above The_Loop, to be displayed only on your main/home page

    EDIT. Well, to be always visible… it might be difficult in that crazy theme you are using. I was to suggest the sidebar, but that theme hides the sidebar in single post view – so you are out of luck (as everybody using the default and wanting to customize it)

    Thread Starter insider1

    (@insider1)

    I switched templates to a 2 column layout and will read up on your suggestions this week. Thank you for all the help thus far.

    Thread Starter insider1

    (@insider1)

    OK, I’m still struggling. I created a static graphic and placed it in my images folder for the theme “yourblog-20-theme” (it seemed to be a very popular theme).

    I’m trying to put the image up using HTML before the loop as shown below:

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    <img src="images/banner1.bmp" alt="Submit earmark story" border="0" align="middle">
    
    	<?php if (have_posts()) : ?>

    But all that gets shown in the alt text. I eventually want to hyperlink this banner to a static page on the blog.

    Again, thanks for the kind assistance.

    This is your problem… you should learn the syntax of relative and absolute paths:
    <img src="images/banner1.bmp"
    (for html and web in general)

    For an image in your theme’s images folder, you should use this (from the Codex):
    <?php bloginfo('stylesheet_directory'); ?>/images/banner1.bmp
    Note: never use .bmp files on the net…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Newbie: Inserting big button in theme’ is closed to new replies.