Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

How can i attach html codes to the home page with atahualpa header

Build custom WP THEMES, without
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
Old Oct 16, 2010, 08:03 AM
4 posts · Oct 2010

I need to create a static home page for my wordpress site. actually i want the header section for this page without header image container.

So what i did was

1. add this to the css insert

.home div#imagecontainer {display:none;}
It disappeared the header image from my home page.

2. created a copy of index.php (wp-content\themes\mytheme\index.php) and rename it to "hometemplate.php". here is the codes showing on that file.

PHP Code:
<?php     /* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH '/functions/bfa_get_options.php');
get_header(); ?>

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] = 0/* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>

    <?php /* This outputs the next/previous post or page navigation. 
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_above_loop']); ?>

    <?php /* The LOOP starts here. Do this for all posts: */
while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
        <?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */
$odd_or_even = (($bfa_ata['postcount'] % 2) ? 'odd-post' 'even-post' ); ?> 

        <?php /* This is the actual Wordpress LOOP. 
        The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_inside_loop']); ?>
    <?php /* END of the LOOP */
endwhile; ?>

    <?php /* This outputs the next/previous post or page navigation and the comment template.
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_below_loop']); ?>

<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_not_found']); ?>

<?php endif; /* END of: If there are no posts */ ?>

<?php bfa_center_content($bfa_ata['center_content_bottom']); ?>

<?php get_footer(); ?>

3. I have selected "hometemplate" (which is a duplicate of Atahualpa's index.php) for my home page.
then i add a table to it and a image along with it. when in runtime the table is appeared, but the image was not there. instead of the image it showing alt text for it. here is the code after my editing

PHP Code:
Template Name: Home template
/* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH '/functions/bfa_get_options.php');
get_header(); ?>
<table width="990" border="0">
    <td height="110" colspan="3"><img src="custom_images/home.jpg" width="990" height="330" alt="home_banner" /></td>

<?php get_footer(); ?>
Here is a screen snap of result


I am runing this site on my localhost (wamp). Please help me
Old Oct 16, 2010, 09:52 AM
juggledad's Avatar
23,377 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try fully qualifying your url or use the url('<?php bloginfo('template_url'); ?>/images/bullets/round-gray.gif') form to point to your image
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Oct 16, 2010, 11:41 AM
4 posts · Oct 2010
Solved. Thanks


attach html codes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wordpress doesn't load after commenting out 2 new codes in Atahualpa's funct alabamian2 Atahualpa 3 Wordpress theme 4 Aug 26, 2010 09:37 PM
Default "home" in page menu, how do I attach a post or page to it? LoneGunman Page & Category Menu Bars 3 Aug 1, 2010 06:55 PM
HTML/CSS inserts in Atahualpa 3.4.1 (for custom header image slider) csb Header configuration & styling 3 Nov 16, 2009 07:02 PM
[SOLVED] Editing Html Codes for Page Body? Craig Mattice Atahualpa 3 Wordpress theme 8 May 23, 2009 06:58 AM

All times are GMT -6. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.