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)
-   -   How do I splice two images into one header in the atahualpa source code? (http://forum.bytesforall.com/showthread.php?t=8933)

carlos123 Aug 14, 2010 08:32 PM

How do I splice two images into one header in the atahualpa source code?
 
Under Thesis I did the following:

Code:

function myHeader() {
  if (is_front_page()) {
      ?>
        <img src="/images/index_01.jpg"><img src="/images/index_02.jpg">
      <?php
  } else {
      ?>
        <img style="float: left;" src="/images/contentbanner_01.jpg">
        <img style="float: left;" src="/images/contentbanner_02.jpg">
      <?php
  }
}
remove_action('thesis_hook_header', 'thesis_default_header');
add_action('thesis_hook_header', 'myHeader');

The above was put into the custom_functions.php file.

Basically I show one of two different headers on the site. The one shows up on the front page..the other on the rest of the pages.

Both headers are composed of two different images that I spliced together in the code. That's how the header came on the site that I was given to change (i.e. in two images and partly I can understand why as there is third image that together with the two above makes the header).

Anyway I just installed atahualpa and am playing around with it and am wondering where I might be able to "splice" two images together as I did above under Thesis?

Any input would be appreciated.

Thanks.

Carlos

juggledad Aug 15, 2010 02:19 AM

You can do this with CSS. Do a forum search since it has been asked several times

carlos123 Aug 15, 2010 09:55 AM

Hi Juggledad. Thanks for getting back to me. Appreciate it.

I did do a forum search and found nothing on what I was looking to do while wading through a ton of posts on everything regarding header this or header that.

I just now did another search using the keywords "splice image header" and the search returned...well...this particular post LOL.

I remain clueless about how to do this in atahualpa.

Am wondering if atahualpa is really the theme for me. Unlike many I love to go into the code itself and don't like changing things through the WP interface which I consider to be a hassle.

Atahualpa seems more of a theme designed to allow one's to make as many changes as possible through the WP interface which is great for many but not something I am keen on.

I want to get into the guts of it and go modifying code to get it to do what I want. Much easier for me and less frustrating than having to trudge through tons of options in the WP interface to finally get to what I want to change.

Is there any kind of documentation in this theme which would give me some insight into it's guts and which files do what?

Any further input would be appreciated.

Thanks.

Carlos

rosetrees Aug 15, 2010 11:45 AM

Carlos - try looking at this thread http://forum.bytesforall.com/showthr...fferent+header

I think the problem you are having with searching is the use of the term "splice" - which to me means to join together. You are, I think, looking for a different header for different pages.

carlos123 Aug 15, 2010 03:12 PM

Thanks for the input rosetrees. Well...that thread gives me insight on where to place custom CSS to...well...have two different images show up among the various pages (the one image on the home page and the other on the other pages) which is all well and good but...I don't want to go making changes through the WP control interface. I want to go directly to the source code files (i.e. CSS or PHP or HTML). I think WP is one big convoluted, gargantuan, behemoth of a piece of software and while I appreciate it's ease of use with respect to adding content I much prefer going straight to source for making other changes.

When I said splice by the way...yes...I meant splice since I am combining two images into one through the HTML code. Something I don't quite know how to do through CSS exactly (short of defining two DIV's next to each other and floating them against each other I guess but such is hassle). In other words I want to splice together two images in the source code somewhere to make one contigous header. As I did in the code snippet I shared.

Where in the SOURCE code would I do that? More importantly as I asked before...is there some manual which lays out what files do what within the atahualpa Theme? Is there an equivalent to the Thesis custom_functions.php and custom.css files?

Thanks.

Carlos


All times are GMT -6. The time now is 10:33 AM.

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