Image Header
-
Hi,
Can someone guide me on how to implement an image header to my site?
-
@mareksgregs it´s easy
let´s go
1 – Open Header.php on Frisco Theme
2 – Search
<h1 id="logo" role="banner"><a href="<?php echo home_url(); ?>" title="<?php _ex( 'Home', 'Home page banner link title', 'buddypress' ); ?>"><?php bp_site_name(); ?></a></h1>
3 – Change to
<h1 id="logo" role="banner"><img border="0" src="IMAGE URL" width="0" height="0"></h1>
Ok?
Thanks bud! Works great.
I put this in, but all it succeeded in doing is erasing my site text header, leaving me with a blank bar- my site here
http://www.sermonmonster.comI see you haven’t set width and height for the header yet!
So start with that and see if it works!How do I set the height and width?
The bolded part is where you should change your width and height by writing in the same parameters as your picture!
Oh and you should also remove “/” at end of your image link!<h1 id=”logo” role=”banner”><img border=”0″ src=”http://www.sermonmonster.com/wp-content/uploads/2012/10/sermonmonsterbanner.png/” width=”0″ height=”0″></h1>
or you can just replace the above code with this:
<h1 id="logo" role="banner"><img border="0" src="http://www.sermonmonster.com/wp-content/uploads/2012/10/sermonmonsterbanner.png" width="728" height="90"></h1>
thank you. Also, how did you see the exact code that I used? my code is only open to me, the admin, i thought?
HOW DID YOU SEE THE CODE I USED????
All code on a website is visible to anyone — try using view source on your browser. And the php files are available via download of the theme.
BTW, using all caps is considered yelling and is quite rude. Please don’t do it here.
Ever heard of Google Chrome?
Hi guys,
This thread was very helpful for me. I just learned how to change the header text into an image. HOWEVER,
Looking at your site there: http://www.sermonmonster.com/
I get very interested to have the same welcome page set up. Anyone that can help out?
1) I want to control the welcome page (not logged in) just like any page
2) This page should not be visible later when logged in/ The swedish guy
To do a login page read this
http://wordpress.org/support/topic/theme-frisco-for-buddypress-login-in-home-page
But will that homepage disappear once logged in?
@marekgregs. In the example where BuddyPress is locked down and users are forced to register before accessing content (like on the Frisco Demo site at http://friscotheme.com/demo/), new users see the welcome message before registering and logging in. Once logged in, they see whatever you’ve selected as the homepage in the Reading Settings from the Dashboard.
You can also make use of the is_user_logged_in function and other conditionals to control who sees what on your own site.
http://codex.wordpress.org/Function_Reference/is_user_logged_in
http://codex.wordpress.org/Conditional_TagsHey, thanks for the replies. It does not work for me and the main reason is that I have no experience of coding at all really. I know the thinking behind ftp servers and html text etc but not enough I guess. So far I have done<
* Went to “Frisco Theme Options ” activated the custom.css and functions-custom.php
* Created a file called “functions-custom.php” in my Frisco theme directory. Added this content http://pastebin.com/wss8Fpdn
* Created a file called “bp-custom.php” in the “buddypress” plugin directory. Added this content http://pastebin.com/rgJ6BQc8
* Did not succeed to create a custom.css file. I use notepad ++.
My site is bjudodds.se btw.
I appreciate all kind of help. I really want to have a welcome page (for non logged in users) looking like this: http://www.sermonmonster.com
Also, I would like to remove the menu for non logged in users.
Thanks,
- The topic ‘Image Header’ is closed to new replies.