Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

How do I splice two images into one header in the atahualpa source code?


  #1  
Old Aug 14, 2010, 09:32 PM
carlos123
 
3 posts · Aug 2010
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
  #2  
Old Aug 15, 2010, 03:19 AM
juggledad's Avatar
juggledad
 
23,686 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You can do this with CSS. Do a forum search since it has been asked several times
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 15, 2010, 10:55 AM
carlos123
 
3 posts · Aug 2010
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
  #4  
Old Aug 15, 2010, 12:45 PM
rosetrees
 
108 posts · Mar 2009
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.
  #5  
Old Aug 15, 2010, 04:12 PM
carlos123
 
3 posts · Aug 2010
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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
favicon/header image code showing instead of images...wlwmanifest.xml? cocola72 Header configuration & styling 8 Apr 8, 2010 09:34 AM
[SOLVED] where is wp-content/themes/atahualpa/images/header folder? rhondimullins Header configuration & styling 2 Feb 11, 2010 08:59 AM
Header Images in Atahualpa airwolf Header configuration & styling 3 Jan 26, 2010 05:18 PM
Output HTML source code is bloated islandman Header configuration & styling 3 Sep 18, 2009 10:38 AM
Style from source to CSS stylesheet file? kartun11 Atahualpa 3 Wordpress theme 3 Feb 12, 2009 05:35 PM


All times are GMT -6. The time now is 07:09 AM.


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