Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Template with Custom Header -- No Image (http://forum.bytesforall.com/showthread.php?t=13081)

epsymp Mar 1, 2011 04:03 PM

[SOLVED] Template with Custom Header -- No Image
 
So I made a template called forum.php:
<?php
/*
Template Name:forum
*/
?>

and I called the usual team:
<?php /* get all options: */
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
include (TEMPLATEPATH . '/forumheader.php'); ?>


forumheader.php also wanted to call some friends, hence:
<!-- Header -->

<td id="header" colspan="<?php echo $cols; ?>">

<!-- <?php bfa_header_config($bfa_ata['configure_header']); ?> -->
<?php include (ABSPATH.'wp-content/themes/atahualpa353/forumheader.htm'); ?>

<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header2' ) ); ?>

</td>
<!-- / Header -->


Forum .htm was there:

<html>
<head>
</head>
<body>

<!-- Header -->
<!-- <div id="imagecontainer" class="header-image-container" style="background: url('http://www.toadthejournal.com/wp-content/themes/atahualpa353/images/forum/art.jpg') top left no-repeat;"><div class="clickable">
<a class="divclick" title="Words" href="http://www.toadthejournal.com">&nbsp;</a></div></div> -->
<!-- / Header -->
</body>
</html>


and the menu showed up.

But alas, the header image was nowhere to be seen!

http://toadthejournal.com/?page_id=2119

Any ideas for how to get him to turn up?

juggledad Mar 1, 2011 04:47 PM

use index.php as a base for a template.

epsymp Mar 1, 2011 05:07 PM

hi juggle dad.

almost the whole thing is set, the only difference is at the top. I will show you ever code mention before "<?php /* If there are any posts: */"
(I'll leave out the template name section)



ON THE FORUM.PHP:

<?php /* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
global $bfa_ata;
include (TEMPLATEPATH . '/forumheader.php'); ?>



ON THE INDEX.PHP:
<?php /* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
global $bfa_ata;
get_header(); ?>


I assume
include (TEMPLATEPATH . '/forumheader.php'); ?>
is meant to replace
get_header(); ?>
in order to specify a different path for the header image.

epsymp Mar 1, 2011 08:26 PM

Ok, so I think I found a better way to try this. I got the idea from reading an old post...

I think you might recommend something like this?

body.page-id-2119 div#imagecontainer {
background-image: url('http://toadthejournal.com.com/wordpress/wp-content/themes/atahualpa353/images/forum/art.jpg') !important;
}

Is this code correct? Any guess for why the header space is there, is a link...yet the image doesn't show?

Thanks.

juggledad Mar 2, 2011 05:02 AM

Is your site really toadthejournal.com.com? (see the code from the last post)

epsymp Mar 2, 2011 05:23 AM

I wish I could say that's what the problem was. I actually didn't make that mistake in the CSS.

body.page-id-2119 div#imagecontainer {
background-image: url('http://toadthejournal.com/wordpress/wp-content/forumheader/art.jpg') !important;
}

And I've now tried it with different images, so I know it's not an issue with the image.

juggledad Mar 2, 2011 06:11 AM

if you enter the html of the image is should show, but when I enter
HTML Code:

http://toadthejournal.com/wordpress/wp-content/forumheader/art.jpg
I get a not found, so the image is either not there or there is a permission issue.

epsymp Mar 2, 2011 05:10 PM

I was playing around a little with what JD said in the last post.

This is the regular header location: http://toadthejournal.com/wordpress/...dFlyHeader.png
and the regular header works in the page, but if I just search that image there's also a Not Found.

Here's exactly what I have for the alternate header:
body.page-id-2119 div#imagecontainer {
background-image: url('http://toadthejournal.com/wordpress/wp-content/forumheader/Art.png') !important;
}

and here's the image path:
/var/www/html/wp-content/forumheader

the image Art.png is there, with permissions at 0777.

I understand if this isn't worth your time, I'm willing to give up, but if anyone has an idea let me know!

ES

epsymp Mar 2, 2011 05:14 PM

Also, I know the image works, because if I put it in the header folder, it rotates with the usual header image.

epsymp Mar 2, 2011 05:20 PM

...yes!

i just took out "wordpress" from the path. simple enough.

:)


All times are GMT -6. The time now is 03:00 AM.

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