![]()
Update 2/5/10:
Dynamic Headers has reached 30,000 downloads in about 9 months! Thanks for the support. In addition Version 3.5.1 was also released today so make sure you’re up to date!
—————————————-
Nicasio Design is proud to announce the launch of our first WordPress plugin that is publicly available. Dynamic Headers does just what you think it would based on the name – it allows you to create highly dynamic header space on your WordPress site.
More info, installation directions, directions for use and screenshots after the break.
Dynamic Headers by Nicasio Design
For the impatient – Download Here.
Support:
- Limited free support is available when we have time, but due to the large difference in the way different themes are coded it is very difficult for us to address every theme related question, so if anyone finds a method to implement the plugin with a particular theme, please share with the community here.
- Comment here for support questions/comments.
- You can also email plugins@nicasiodesign.com
- Paid support, plugin customization, and custom plugin development is available. Contact Us for a quote.
Features:
- Set different headers for each page and post.
- Use different media types on each page (image files, flash files).
- Cross browser compliant embed code automatically generated.
- Can set default header for pages/posts without set header image.
- Fails gracefully if no header media present for current page.
- Random media for individual pages/posts and default media.
- Alt / Title tag management for images.
- Supports both built in browser uploader or FTP.
- Quick and lightweight.
- Simply add template tag to theme to pull dynamic media.
- Tested and validated to work on WordPress version 2.6+
- May work on 2.3+
The only minor coding required on your part is to drop the template tag into your theme file where you want your dynamic media to appear.
Hint: While we designed this plugin to handle your header images, you can actually insert the template tag anywhere in your theme – so use your imagination. We plan to add the ability to create your own dynamic media modules in a future release so you will actually be able to have multiple dynamic image areas on each page.
Planned Future Functionality:
- Ability to manage multiple dynamic media modules on each page.
- Ability to create your own dynamic media modules.
- More visual selection and management of your dynamic media library.
- Integration to allow use of WordPress Media Library.
- Ability to set header for different WordPress archive pages.
- Ability to associate links with an image, so the plugin could, in theory, become a basic ad manager.
Directions for Use
1. After installing the plugin you will need to make sure /wp-content/plugins/custom-header/header-images/ is writable. If you are unsure on how to do this, consult your hosting company, your help files for your hosting, your FTP client documentation, etc. This process can vary from server to server.
If the directory is not writable you should be seeing an error message at the top of the plugin admin pages.
2. Upload media (using the filtypes listed above) on the Add New File Page.
3. Go to the Settings Page (under the Headers main menu item created by the plugin) and set your default header image. If you do not set a default header image, no media will be shown for posts and pages that do not have a header image associated with it.
Alternatively, you can also add images to the /wp-content/plugins/custom-header/header-images/ directory using your FTP client or other file manager.
4. Create or edit a post or page and at the bottom of the page you will see a new box called “Dynamic Header by Nicasio Design”. Select from the drop down one of your uploaded media files. This media will be shown only on the page or posts you set it to appear on.
5. Now you will need to add the template tag created by the plugin to your theme file where you want your dynamic header to appear (this will usually be in wp-content/themes/your-theme-name/header.php).
You have 2 options for adding your dynamic header:
Option 1 (Recommended): Simply drop the this line of code into your theme file
<?php show_media_header(); ?>
This will automatically determine what type of media you are using and generate the appropriate code to insert it. No other coding is required on your part.
Option 2: You can use this line of code to simply get the URL of the media for a particular post or page. This will allow you to do some more advanced things and embed the media yourself if you know what you are doing.
<?php $dynamic_header_url = get_media_header_url(); ?>
You can then use the variable $dynamic_header_url however you see fit. It will contain the full path to your media file.
It is advised that most users simply use Option 1 as it is significantly more simple.
Note: This function can return NULL or the string ‘None’ if there are no headers for the current page.
Important Notes: On archive pages, the header media is controlled by the first post in the list. We plan to add control for archives pages separately in a future release, but for now, be aware that the first post on an archives page controls that page’s header.
Screenshots





')



I am a visual person, so I would love to see screenshots of this plugin in action!
@Parg
There should be some screenshots right ^ up there.
I’m going to try to add some to the WordPress Plugin repository tonight too though.
I installed your dynamic header into wordpress ver 2.6.1 and it foesn’t work even after its activated. I click on about or directions or any tab it remains blank and no information
@nalanw -
What sort of server environment are you running WordPress in?
I just did a quick test using the plugin with WordPress 2.6.1 on an Apache server with no problems.
Also, what other plugins are you currently using? Obviously we can’t test to ensure the plugin will work with every other plugin out there so any info you can give us will help us ensure maximum compatibility.
You might also try to re-download and reinstall the plugin as we had a couple of minor issues with the initially launched version.
THANK YOU FOR THIS.
Saw your Plugin in the repository last night, downloaded it last night, played with it and added headers to my 70+ page site.
Before your plugin, I was MANUALLY inserting code into my template files, uploading images to my server and using custom fields and the url of the images to do what this plugin does.
It’s one of the best WP-Plugins !
I had just a little problem to insert the code into the header.php. But now, it still works fine !
Thank you all for this !
Thanks for the positive feedback so far.
Awesome! Thank you.
One small suggestion: Step #3 in the directions above and in the “other notes” on wordpress.org mentions the Settings Page. It took me a while to discover that this referred to the “Headers” menu the plugin adds to the WP dashboard. I kept looking in the *general* WP “Settings”.
Regarding my comment above: those more familiar with WP may have been expecting the added “Headers” menu (I’m a newbie). The screenshots helped a lot.
Thanks again. This was exactly what I was looking for.
@ Lee: We appreciate your comments/suggestions and are planning on making the change as you requested to make the documentation easier to understand for everyone – including the noobs : )
@ Lee – glad it helped you out. I made the changes to the directions to make things a little clearer.
Love the plugin – would be great if you recommended WHERE in header.php is the best place to paste .
Thanks
@Mojitomaker -
That’s entirely up to you and it can vary greatly based on what theme you’re using.
Don’t forget to review us in the WordPress plugin directory if you like the plugin!
Error: custom-header.php, line 307, function getimagesize() does not exist.
Any ideas?
@Mojitomaker:
Hmm, not sure why you would be getting that error. getimagesize is a standard PHP function in both PHP 4 and 5.
I assume you’re using a flash file on this page?
You could do the following:
Open custom-headers.php in a text editor and change line 307 from this:
list($width, $height, $type, $attr) = getimagesize($swf_src);
To this:
//list($width, $height, $type, $attr) = getimagesize($swf_src);
//Set width to the width you want to use for Flash headers
$width = 100;
//Set height to the height you want your Flash headers
$height = 50;
And just change the 100 and 50 to the dimensions (in pixels) of your Flash header.
This will take away the ability to use different sized Flash headers, since it will use a set height and width, but it should fix the error.
Within the readme.txt file included with the download, it says:
== Installation ==
These are the directions for the install. Be sure to read Directions for Use before using.
1. Upload ‘the custom-header’ directory to the `/wp-content/plugins/` directory
1. Activate the plugin through the ‘Plugins’ menu in WordPress
1. Make sure `/wp-content/plugins/dynamic-headers/header-images/` is writable (777)
1. Read the Other Notes page for Directions for Use. These directions are also contained in the plugin.
On the first number 1 (there are four number ones), where it says, “Upload ‘the custom-header’ directory,” do you mean the folder called “dynamic-headers” that is the main folder from the “dynamic-headers.2.6zip” file I downloaded for this plugin?
@Dan
Yeah, i got to that solution too – strange though. I don’t have access to the php install info, but it seems to be working well now – thanks. Will review the plugin for WP if you like – easy as.
@Greg – The reason there are 4 number 1’s is because the Readme file is used to generate all of the pages you see on WordPress.org. Several 1’s is the syntax for an ordered list.
And yes, custom-headers refers to the dynamic-headers folder. custom-headers was the development name of this plugin. I thought I had removed all references to it, but I must have missed one.
Note: We accidentally uploaded an old version using the custom-header naming, so if you downloaded the plugin in the first few minutes it was posted you may want to try downloading it again.
Hello!
When trying to put up a swf i get this above it …
Warning: getimagesize(/wp-content/plugins/dynamic-headers/header-images/lilone.swf) [function.getimagesize]: failed to open stream: No such file or directory in /nfs/c03/h04/mnt/57616/domains/thisisdavid.com/html/wp-content/plugins/dynamic-headers/custom-header.php on line 307
any ideas?!
@ David:
This is probably due to your server settings. I have made a revision to the plugin that should take these settings into account.
I just made the change to the WordPress plugin directory – it should be up there in less than 15 mins. It will be version 2.7.
If you don’t want to reinstall then just open custom-header.php
Find this line around line 305 or 306:
$swf_src = '/wp-content/plugins/dynamic-headers/header-images/'.$load_this_media;Replace with that whole line with:
$swf_src =ABSPATH. '/wp-content/plugins/dynamic-headers/header-images/'.$load_this_media;That should solve your problem….in theory.
Does this work with Wordpress MU?
@Curry:
It has not been extensively tested on MU, but some of our users have reported that it works with no problems.
Wowsers!
that was fast! All fixed and wonderful!
Awesome work!
David
Thanks for the quick reply. When I go to settings and try to ‘Save Changes’, I am taking to /wp-admin/options.php, with the message “Error! Options page not found.”
I followed config, but I am wondering if I need to do something else to access DH options.php? Any thoughts?
…and thanks for a great plugin!
Hi nice plugin but i would have just a small suggestion:
for the homepage (the last blog entries) it would be great to have the possibility to show the header of the last post (like the archive page).
Would that be possible?
thanks!
@Mat:
This is actually how the plugin behaved in the beginning, but I didn’t think people would want the most recent post to control the image on the homepage so I set the homepage up to have its own dedicated header.
Perhaps in the next version I will give the ability to choose to have the most recent post as an option for the homepage header.
Yes that would be great!
I think changing the header each time there is a new post is a nice and simple way to tell people coming to my blog that something has changed…
@Dan
Cheers for the update. Imagine David’s delight HAHA!
@Dan & Everyone
Firefox 3, PC. SWF Header loads about all other layers, unlike all other Mac/PC browsers with the same code. Any ideas?
@Mojito-
Can you elaborate? Perhaps provide a link to the problem page so I can take a look at it?
It’s an internal blog, so all i can do is post the code. In all other browser the multimedia header shows at z-index 100, and the logo at z-index 200 – except Firefox 3 on PC
header.php
styles.css
#header {
position: relative;
}
#multimediaheader {
position: absolute;
z-index:100;
}
#thelogo {
position: absolute;
z-index:200;
}
header.php got ignored previous post
-->
header.php
div header
div multimediaheader /
div thelogo /
/div
dan-
this is very cool! is it possible to set the width of jpgs by default that are dynamically loaded?
if so, could you please help me set that up?
thanks,
andrew
I love it but just wondering if there is a way to use a small html page holding a a running javascript ? Or in other words is there a way to use HTML instead or also ?
Sorry Dan, for polluting your plugin forum with Flash/Firefox issues, but if ANYONE has a working solution, please post it.
This simply does not work for me – or anyone it seems – including the SWFOBject guys (sorry Phillip).
http://geekswithblogs.net/steveclements/archive/2007/03/03/107839.aspx
http://slightlymore.co.uk/wisdom/flash-and-the-z-index-problem-solved
http://pipwerks.com/lab/swfobject/z-index/2.0/index.html
dan-
i was able to achieve what i needed using css.
very great plugin!
Great plugin … but i seem to have a problem on using it on a wordpress theme called panorama… everything done as on the description but it just sends the header images on the top of the pages and not on the header image frame… the problem is i guess that the theme itself has something like a header image option where you can choose one image displayed on the header… I send the theme files and the screenshot on Your email … thanks in progress for your time and interest
…
how many headers can view in a minutes??
@pete:
We can’t get into specifics of where in a theme you need to drop the template tag. This can vary greatly from theme to theme. And depending on what theme you’re using it is possible the theme author has already built some sort of dynamic header functionality into the theme. I would advise you to do a little trial and error to find the right place to drop the template tag.
Have you tested this to see if it works with WordPress MU? One of the issues that I’ve found with regular WP plugins is that they don’t register their options. It’s not required for WP 2.7.x right now but will be in 2.8. However, it is a requirement for WordPress MU right now.
Does it work with categories too? Can posts from certain categories have have a certain header?
Is it possible to have image header per category?
Plug in is Awesome! So very to easy to use and excute. Im only having one problem with it. For post or pages I do activate the “Dynamic Header by Nicasio Design” on the bottom of the pages/post but for some odd reason it doesn’t show up. So the only time my header shows is when im on my main “home” page. Am I missing another setting?
Hello
I love the idea of this plug-in, however I’m having some trouble getting it to work. I have inserted into my header.php file but it doesn’t display anything. Am I doing anything wrong? I have set the folder mentioned above to 777.
Also, I’m sure it’s incidental, but the icon on ‘Headers’ menu doesn’t display.
Please help! Thanks!
Hello, back again… for another little suggestion.
I think you could add a post id parameter to the Get_media_header_url function so it could work like that:
get_media_header_url($post->ID)
I tell you this because I use it with another plugin called snazzy archives that creates an image oriented archive, and since it cycle through each post to get an image I just modified the get_header_media_url like I said to get an header image instead of an ‘in-post’ one and it works great.
So maybe there already is way of doing this without the modification, but if not I think it could be usefull so we can get header url in different places..
Thanks again,
Hi Dan,
Any reason why the default header isn’t working for new pages/posts?
Cheers,
Alistair
And just one last thing … when editing or creating a new post it would be nice to have the possibility to set the header to the default one, not only none/random (and if that could be the default choice too).
I don’t know if it is the normal behaviour but when I edit a post without header it default to ‘none’ (and that is what is writen in the database) so when I go to the post page It doesn’t show any header. I think the none behaviour should be explicitly done by the user and should not be the ‘default’ behaviour…
Ok, won’t bother you anymore!
great plugin!
Ciao, for those who may concern: in the default wordpress theme the template tag must be added here:
<a href=”/”>
Hope it will help someone, I’ve made several tries to find the point to insert it.
Dan, maybe it would be helpful if you give instructions on how to resize the flash file appearance; when I did the first time the flash file was showed smaller than it was. I changed line 307 as you suggested to Mojitomaker and put the dimensions of my swf file and now it works.
Ciao
I’m receiving a 403 Forbidden error for the image urls, not sure why — any thoughts?
Thanks — great plugin
Really great work guys…I’ve been trying different solutions to this problem all night and this was definitely the simplest to implement (although I’m sure my trial & error did help!) Hopefully I can get the flash headers working next..!
Hi – I have version 1.8. I’ve uploaded the files, and can see them in the header-images directory, and also in the manage images area in the Headers section. But when I go to a page to add the header, none show up in the dropdown. I only get -no image- or -default image- (which both work). What am I doing wrong?
Help,
I’m trying to use your plug-in,
I can upload files, but they never show when I try to choose them on the selector drop-down when editing pages. I have changed the permissions on the header-images folder to 777.
I have deactivated, and installed the newest version with no change.
Thanks,
Chris
Fantastic work! I love the plugin! For some reason my .swf header doesn’t show in safari, I haven’t tried ie, but firefox works great. I’m not much of a coder – maybe I am missing code somewhere. Any tips would be awesome!
Version 1.9 fixed the problem – I now see the images in the drop-down. Thank you – you guys rock, and the plugin is extremely useful!
OK, one more: I use the Manage Files page to add a new URL to an image, and I select “Same Window” in the New Link Target dropdown. Then when I look at the page created, clicking on the image launches a new window, not the same window. I look at the code generated, and it has “” Looks like the wrong dropdown is populating the target? Thanks in advance for addressing!
The link in my last post got turned into a real link. It’s
> a target=”/contact/” href=”/contact/” <
Hi,
I upgraded to version 2.9 and all my problems went away, well at least all my problems with dynamic headers.
Thanks
Chris
My header image was made to be used without a boarder http://www.annmariedavis.net.
how do I remove it from my blog header?
Hi
Thank you for the plugin. I have activated the plugin and it works fine but when i edit the page, the default selection is “Default media header” wherein, it should be what I had selected. However the header on the page is what I have selected but that is not what it shows in the edit page. Any help will be highly appreciated.
Jimmy
Hello there. I am a newbie to WP, themes, plugins, etc. I am amazed at all of the cool and amazing stuff that is out there.
Thank you for the dynamic header plugin. I wanted to know how I can align my header to the left of my pages. Like I said, I am a newbie
Thanks!
Hi guys,
Thanks for the great plugin — good solution to a common need. I downloaded it a couple of days ago, but it would only work on the blog (index) and the pages, but not in individual posts.
I just upgraded to version 2.9 in an attempt to fix this, but now the header only shows up on the blog page, and on the pages/single posts nothing displays. It should be pulling from the default image, but doesn’t seem to be able to find it. Any suggestions on a fix?
thanks,
-Adam
@Adam
Note there is both a Default Header and a Default Blog Header, both need to be set in order to work across the site.
Also if you upgraded, you may need to set your defaults again since the directory where the images are stored changed from earlier versions.
Try setting both your default header, and blog default header again and see if that helps.
Hi Dan,
Wow – quick response, thanks! I did this, but it didn’t work. The blog I’m working on is at Sheilacampbell.com
I moved all the files to the new header-images folder and re-selected them for both the blog and the default. I also tried re-naming the images and re-uploading in case it was a cache issue.
But the image only shows in the index page, not on any of the internal pages or single posts. Anything else I should try?
FYI I’ve implemented it via the basic in my header.php file.
@Adam
You may need to go back through your pages and posts and make sure they are set to use the Default Header. If you upgraded from an earlier version they could be set to nothing instead of default.
Also, please contact us at plugins [at] nicasiodesign.com if you would like quote for us to take a look at fix the issue.
Aha, that fixed it. Thanks, Dan!
@Otto
Sent you an email. You will need to use CSS in order to change the alignment on your image.
@Adam
Glad I could help.
Dynamic Headers had great promise but I can’t use it yet. I need to be able to resize my client’s flash image from 266px high to 168px and align it to the left so that other images can be placed in the header to the right. Using Firebug, I can manually edit the embed code that Dynamic Headers creates and the result is exactly what I need. Unfortunately, I have no way to access these settings in advance so I’m looking forward to a future upgrade than will permit these changes.
BTW, the previous setting for the “Header Image for This Page” is not retained when you return to a page. This is quite confusing.
I appreciate your work on this.
Can someone show an example of what this plugin does?
Has anyone figured out the location to put in Atahualpa Theme so I can replace the header image? I can get it at the top of the screen and in the body, but no place else.
Thanks!
Hi -
Man I’d love to make this work with our theme and I’m oh so close.
I have the folder all set-up, settings done. I removed the header bg image from the CSS file so no other image will load in the header, and I finally found the place to put the code snippet in order for the dynamic header to go right where the header image is (and not a little above it or below it).
But – when I do, the blog name and description (both text overlays – over the header image) dissapear.
In the header.php file – the blog name/description (text) are just in the next so I tried moving that section up one, right below the dynamic header code snippet, but alas that doesn’t work. Everything moves us incorrectly.
Is there a way I can show you this issue? I could send you the code if you have a sec to look. I feel like it might just be a tweak…
FYI we use Zinamg Remedy 2.0 theme
Thanks for the help.
-m
Dear Dan,
This plugin is really cool, but I am having a little problem when trying to apply it: it displays both the original header and the new header..
I am using the kubrick theme,and tried already to place the code in various places in the header.php, and though this moves the dynamic header around a bit, it never stops to display them both..
I’m quite a newbie, so could you pleas tell me what I am doing wrong?
thanks so much in advance,
kind regards, Oo
@Dan
Hi Dan
can you send me the same email you send Otto?, I have the same problem
nice plugin
Tom
Your plugin makes life easier. Thank you. but is there anyway for this to work on the categories portion of the site?
Hi
Thank you for the plugin. I have activated the plugin and it works fine but when i edit the page, the default selection is “Default media header” wherein, it should be what I had selected. However the header on the page is what I have selected but that is not what it shows in the edit page. Any help will be highly appreciated.This is the second time, I am making a request here.
Jimmy
Dynamic Headers is now WPMU and WP 2.8 compatible.
Hello. What a great plugin, thanks for sharing.
I have it working at http://thefashionfind.com/wordpress/?page_id=13 but as you can see each header is off by like 10px. I’ve played with CSS but can’t get them to move. Can you help? Thank you in advance.
Greg
Hi, Great plugin
Someone asked about how to incorporate it into the Atahualpa 3.3.3 theme. Here’s how on their forum:
http://forum.bytesforall.com/showpost.php?p=7895&postcount=11
The good thing is you can place it anywhere above or below the menus/logo etc as it’s controlled by %bar1. Also the flash or images can be different heights – basically whatever you upload.
Only problem I’ve found is that the menu for selecting which image/swf goes on the page doesn’t remember what you selected (seems Jimmy above has this problem too) – so next time you update the page it goes back to the default image unless you change it. (Is this a bug? I’m using v3.1)
Hi…
My English so bad…
that I was made translation your plugin Dynamic Headline 3.0 in Russian
One its advice:
the code record GetText (http://en.wikipedia.org/wiki/Gettext)
will in the future be a translation easy…
Where do I put I have no clue and I have read all the posts here!! Please help
Hi there, great plugin, but I am having trouble with swf-files. I am using v3.1 on WP v2.8 and when I go to the specific page with the uploaded swf-header it shows: Warning: failed to open stream HTTP request failed, Authorization Required in…. custom-header.php on line 369
Works fine with jpg though.
Thanks for any advice.
After I activate the plugin, an error message appears. My website will load properly, however, I cannot login to WordPress admin. This message always appears when I try to login:
Fatal error: Call to undefined function register_setting() in /home/fruity/public_html/wp-content/plugins/dynamic-headers/custom-header.php on line 267
I had to delete the plugin folder in order to access WordPress admin again. The version prior to 3.1 did not give me this error.
Hello
I’m having the same problem, worked fine before the upgrade, trying to change abs path but no joy yet
Hi ! Great plugin ..
a little Problem: If jou edit your page or an article .. the headerinformation will be lost .. you have go once more to “Header Image for This Page” an click it again ..
works fine .. jpg .. flash …
but
is there any way to save the page-header relation fix ??
Thanx an have a good time
Mike
Hi Dan
When I try to activate the plugin from the list, I get the following message:
Fatal error: Call to undefined function register_setting() in /home/feverp/public_html/wordpress/wp-content/plugins/dynamic-headers/custom-header.php on line 267
What can I do?
Thanks!
Regarding problems on 2.6 and lower with version 3.1: There is obviously a problem with the new version and 2.6 and below. This is related to the changes to make it 2.8+ and WPMU compatible. This will be fixed in the next release later this month. In the meantime, visit the plugin download page. On the right you will see a link called older versions, click on that and download and install the last version that was working with your blog.
Sorry for the inconvenience.
Hey,
Thanks for doing all this work on the plugin. I’m new at this, and using the kubrick theme. When I put an image using your header, it aligns to the left and just off the page. How do I go about centering or moving the header so its completely on the page? I’m assuming it has something to do with the CSS, but I’m not sure how to bring up the new header there.
Thank you for your time and whatever help you can provide,
Sean
Thanks for the great plugin! I searched for something like this some months ago and was disappointed that no one had written a plugin to set the header image per post. I plan to use your plugin on my travel blog.
I have some feature requests though. It would be cool if:
- one could give credits to the photographer (auther with link, license with link).
- one could change the Blog’s title and subtitle font color (if it overlays the image).
- one could specify external images (i.e. URL).
Keep on the great work! Greetings from Germany,
Jens
Hello,
Great plugin, exactly what I need:) however, I’d like to move this ads from the left to the right within header area. Any tip how to do that?
Thanks both for your reply and this lovely plugin,
Szilvi
Just to make it clear, I’d like to use standard blog header at one side, and additionnally this ads on the right side at the same time. Is it possible?
Hey Dan,
first of all: Thanks and good work!
A little “bug” which caused after installation. In the admin menu, if I have assigned a header to a page. After saving, the select field didn’t showed me my previously saved selection. My mysql tables are starting with “cm_”.
// custom-header.php, function create_ch_form
$media_file = $wpdb->get_var(“SELECT url FROM wp_custom_headers WHERE post_id=’$this_id’ LIMIT 1″);
So an addional query of the users table prefix will help.
HTH! Thommy
I CAN’T FIGURE OUT HOW TO GET RID OF THIS ERROR MESSAGE WHEN I ADD THIS LINE TO MY HEADER.PHP:
Warning: getimagesize(): URL file-access is disabled in the server configuration in /home/content/h/e/a/hearttones/html/main/wp-content/plugins/dynamic-headers/custom-header.php on line 369
Warning: getimagesize(http://hearttones.com/main/wp-content/header-images/banner.swf): failed to open stream: no suitable wrapper could be found in /home/content/h/e/a/hearttones/html/main/wp-content/plugins/dynamic-headers/custom-header.php on line 369
> Heart Tones – Inspiring Hearts! Encouraging Souls!
Just another WordPress weblog
I AM USING THE BLEND1.5 THEME. . .UNFORTUNATELY I’M NOT A PRO WITH THE CODING STUFF SO ANY AND EVERY PIECE OF HELP WILL BE GREATLY APPRECIATED!
When I try to ‘Save Changes’, I am taking to /wp-admin/options.php, with the message “Error! Options page not found.”
why ? anyway to solve?
Good! settled! thank guys!
It would be nice to be able to associate headers to categories instead of posts.
Thorsten
ERROR: Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /usr/www/users/……/wp/wp-content/plugins/dynamic-headers/custom-header.php on line 383
Warning: getimagesize(http://www.mcquaystables.com/wp/wp-content/header-images/button_for_mcquay.swf) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /usr/www/users/……/wp/wp-content/plugins/dynamic-headers/custom-header.php on line 383
Is there a way to fix the getimagesize error on line 383?
Hi,
Everything is working fine with the plug-in except that when I upload an image for the header, it gets assigned the home address (which is fine) but it gets assigned twice : http://www.mariajacobowww.mariajacobo. So whenever you click on the header I get a page telling me that the page doesn’t exist. I have tried looking where the problem is, but I cant find anything. Any suggestions to get it to link to the right page?
Cheers
Hi,
just want to say its a really nice plugin and very usefull.
I´am trying to get it to show an .html (slideshow+javascript). could this be done, so that instead of an image or flash it would also be posible to load a dynamic slideshow for each post… or would be to complex?
thanx in advance
Hi, thank you for the excellent plugin!
I’m trying to modify the default theme to accommodate the dynamic headers plugin but I’m not being very successful. In what file should I drop the code to make it work?
Thank you,
Dinis
Hi,
What is the best way to make the header image a link back to the homepage, using your plugin.
Thanks,
Tom
For all those getting the getimagesize() error, you will need to speak with your server admin or hosting company and get them to enable URL file access of your server.
For all those with positioning issues: these are CSS issues. You will need to modify the CSS of your theme’s header if your image is not displaying correctly. There is no way for us to control this on the plugin side.
@Tom: You could simply set the link for the images to your homepage URL
I updated to version 3.4.2 and swf headers stopped working! It looks like there is a possible typo, an extra slash, in the code.
embed src=”/http://
Hi,
I’m having problems trying to get this plugin to work.
I have set the default and blog header images correctly in the settings.
I’m using the Thesis theme, and have put the line below into my header.php, as per the 2nd option in your instructions…
I have then put the following line into my custom.css file…
.custom #header {background: url($dynamic_header_url) no-repeat; height: 170px; width: 900px; padding-bottom:0}
However, when refreshing my page, there is just a blank where the header is meant to be.
Checking the page via Firebug, the correct div and corresponding entry in the custom.css file is being referenced, however it’s almost as if the $dynamic_header_url variable is not returning the image url correctly.
If I use your recommended 1st option, the correct header shows but is located incorrectly on the page. I was assuming the only way to modify the image location was to use the second option and make the relevant changes in the custom.css file.
Is there something I’m missing?
I would be grateful for any help as this is literally the only plugin I can find that provides the functionality I’m after.
Andrew.
The previous post seems to have cut out the line I placed into the header.php. Trying again with quotes…
Hi,
I’m having problems trying to get this plugin to work.
I have set the default and blog header images correctly in the settings.
I’m using the Thesis theme, and have put the line below into my header.php, as per the 2nd option in your instructions…
”
I have then put the following line into my custom.css file…
.custom #header {background: url($dynamic_header_url) no-repeat; height: 170px; width: 900px; padding-bottom:0}
However, when refreshing my page, there is just a gap where the header is meant to be.
Checking the page via Firebug, the correct div and corresponding entry in the custom.css file is being referenced.
It’s almost as if the $dynamic_header_url variable is not working correctly.
If I use your recommended 1st option, the correct header shows but is located incorrectly on the page. I was assuming the only way to modify the image location was to use the second option and make the relevant changed in the custom.css file.
Is there something I’m missing?
Dan,
The dynamic headers plugin is great, but it resizes any flash movie i try to integrate. Is there a way of fixing this? Thanks
Matt
Thanks Dan! Working fine now. Excellent plugin!
Hi
I love this plug in.
On the pages where I want NO header image, is it possible to remove the blank space left by having no header image?
Currently I have an image on the home page of the site Im working on, but pages where I have no header have inches of blank screen above the post. Is there a fix for this?
once again, thanks
Hi
I love this plug in.
On the pages where I want NO header image, is it possible to remove the blank space left by having no header image?
Currently I have an image on the home page of the site Im working on, but pages where I have no header have inches of blank screen above the post. Is there a fix for this?
once again, thanks
line 127 custom-header.php
add_menu_page('Headers', 'Headers', 8, __FILE__, 'dhnd_main_menu', '/wp-content/plugins/dynamic-headers/images/custom_header_icon.png');does not resovle the admin icon.png properly for wordpress installs in a subdirectory
Great looking plugin, time to have a play and see what it can do. Before I do that can anyone point me to a good example of a blog using ‘Dynamic Headers’ so I can see it in action on a live site?
This plugin rocks! Took me the whole night to find this, but it is exactly what i was looking for. I am using Artisteer to develop my theme basics and doing some coding to customize it a bit more – this was the bomb!
If anyone else is using Artisteer, you can add the code as such:
Open header.php, and find this at the bottom of the source code:
…edit it to look like this:
I am in the process of putting up a new site and purchased the Flexxtheme from iThemes. I’m interested in this plugin to allow me to set unique images on each page.
I can’t seem to get it working correctly. It pulls up the image but throws off the layout of other elements. The code that pulls up the header image is:
<div class="” id=”container”>
<a href="”>
<img src="get_random_image(); ?>” alt=”Header Image” />
<img src="get_random_image(); ?>” alt=”Header Image” />
<a href="”>
I’ve moified it to :
<div class="” id=”container”>
Cann anybody tell me what I’m doing wrong?
Thanks
I have Super-Cache installed on my website and was wondering if there was a way to not cache the dynamic header?
Thanks!
Marina
Hi All,
It seems most of the issues being reported are CSS related issues. These all seem to be very minor, but due to the large number of themes there is simply no way for us to account for all the different CSS methods used to setup a header. The possible CSS configurations are literally infinite. Your best bet to get your header to look just the way you want is to edit your theme’s CSS file. This obviously requires some CSS knowledge, and you should ALWAYS backup any files before editing. There are a ton of CSS tutorials out there that can help you find the information you need.
-Dan
Dynamic headers is working fine on IE but not on firefox 3. The swf is not shown in original size and far to small. Any ideas how to fix it?
Thanks in advance
This plug-in is going to solve some header image issues for me as soon as “Simply drop the this line of code into your theme file” is explained a bit more. Specifically, where in the header.php file will I put “” to knock out the old header image for the dynamic one?
I am using a Kubrick theme for testing. Any help would be much appreciated.
Thanks
Hi
Thanks for the plugin – it should save a huge amount of work except I can’t get it working!
Could you take a look at the above site and tell me how to fix it please? The error I’m getting is:
Warning: getimagesize(/home/paul-scott/web/wordpress//wp-content/plugins/dynamic-headers/header-images/hat.swf) [function.getimagesize]: failed to open stream: No such file or directory in /home/paul-scott/web/wordpress/wp-content/plugins/dynamic-headers/custom-header.php on line 375
Thanks
Rich
I am so happy to use this plugin. but will it sustain if WP version gets upgraded. what about WP 2.9??? I don’t want to run into trouble, tho’ I love using it.
Hi Dan,
Great theme! I love it!
I’m just having a bit of a problem with your theme on a site of mine – it works on the Pages, but on the blog posts the header messing up the page layout (see: http://wholeiam.rachelbeaney.com/2009/08/1st-yoga-colours-e-book/)
I’ve only put the ?php show_media_header(); ? line of code in the header.php, nowhere else.
I’ve also turned the Blog Page Header option to ‘No Default Header’ and the header image is still present. This option also removes the header from the main page.
When I turn off the Page Header option to ‘No Default Header’, the header is removed from the Blog Pages.
Any ideas?
Cheers,
Rach.
Love this plugin! Thanks so much. saved me hours of programming. Now to have a background color change with each page. That would be cool. Just CSS color change that can be done via admin.
I have a problem updating the pluguing and activate I get the following error: Parse error: syntax error, unexpected T_STRING in / home / akinotic / public_html / wp-content / plugins / dynamic-headers / custom-header.php on line 128
and not to do to resolve it if they can help you.
Hi,
I just updated to the version of your Dynamic Header (3.4.6) and am now getting an error:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_STRING in /home/stmatts/public_html/wp-content/plugins/dynamic-headers/custom-header.php on line 128
As a result my site is broken. Any ideas what I can do?
Thanks
JB
Is there any way to set a default header image on a per category basis?
While I love the ability to change the header on an individual post, for the most part, I would prefer the ability to set a default header image on a category basis, where I could then override the image on a per post basis should I need to.
Is this possible?
This may well be a great plugin if we could see it in action? I am using default theme but I would like to have my logo placed in the left side of the blue header (superimposed) or replace the header with my image, but nomatter what I try it is an exercise in futility??
It could be that this is not what this plugin is supposed to do?
Hope there is someone who will enlighten me?
Thank you
dave
get_media_header_url() is not returning a full path for me.
For example: I only get “header_home.png” as opposed to “http://www.website.com/wp-content/header-images/header_home.png”
I’m having to use:
, instead of what’s in the docs.
It works, but it’s ugly. I have to do things this way so I can set the header image as a background through embedded CSS, because this particular theme places text over the image.
Any ideas on why I’m not getting the full path with this function?
Thanks for this free, useful plugin, by the way. Don’t wanna be one of those people who chimes in just to say it doesn’t work right, without acknowledging all the work that was put into it in the first place.
I’m able to work around the problem as described above, I was just wondering if I might have messed up somewhere in order for it to be doing that.
Hi,
first : thanks for your plugin, it’s very cool !
I have a question, when im in admin panel with an editor acces I cant view the plugin in the left menu.
It’s a bug of my installation ?
It’s normal ?
It’s possible to fix that ?
Thanks for your help
How can I have my image show up as the background image in my header?
I’ve tried using the background image url for #header as $dynamic_header_url but that doesn’t seem to work.
I know you’ve responded to similar questions in the past by saying to look for CSS tutorials, but I’ve done plenty of research and found nothing. Please let me know any method I could possibly use to accomplish this.
Dan or Chris: How do I get rid of the old header photo? Everything else works fine but the old photo remains right next to the new photo.
Very nice plugin, thank you. I have a couple questions:
1. I’m getting a solid dark blue border around my header image. Do you know how I would get rid of it?
2. Thinking that it might be caused by the anchor tag, I tried to remove the link URL from the image by updating the file and leaving the ‘New Link URL’ field blank, but this gets ignored. How do I remove it?
Ok, in looking through your code, I determined that you are using the wp_options table to track the links, alt, etc. So it appears that the code isn’t cleaning up the wp_options table when a header is deleted (add this to your todo list
I deleted the dhnd_…_link entry and the link is gone. This also removes the blue border I was trying to eliminate (so I know now my problem is with the anchor CSS and not the image).
Thanks for a very useful plugin.
Hi there
I hope to use this function for my pages, not my posts. But I can’t save the image selection. I select it, I click on update, and then it goes back to — Default Media Header –. Is there a way to fix this?
It would be awesome.
Wont setting the permissions to 777 be potentially harmful if some evil hacker finds out? I mean it’s no secret where the folder is located.
Thanks for a great, soon also working here, plugin!
Hello again
Had some trouble getting this thing work. Selecting an image and then saving/publishing had no effect.
I checked through the code and discovered that for some reason, the sql table named [your-own-prefix]custom_headers wasn’t created. After creating it it all worked like a charm. Thanks.
Hi there,
is there a possibilty to adjust the size of the flash-movie:
Another question: how can I display a .jpg-file if flash is not installed?
The last question: the flash movie will be loaded from the beginning after I click to a sub-page. Is it possible to laod this movie only once?
Thanks
Joachim
Hi, sorry, Otto asked this question earlier, the header is aligned to the left, how do I change the alignment to center?
Thank you!
I’ve seen this great plugin work great on other wp sites.
Im having one small problem, i’ve added the php script (option 1) to my header.php template file but for some reason my page is displaying both the dynamic and the default headers on top of one another.
Any help would be great,
Thanks is advance
I am wondering, how to use Dynamic Headers with the Artisteer theme builder for Wordpress. Directions For Use of this plugin are only for default WordPress theme, because the Artisteer theme file head.php looks quite different as Default theme. Please, help!
thanks for the great plugin
what about upgrades for wordpress 2.9.1???
Hi Everyone,
Quick Note: ALWAYS make a backup of your theme files before making any changes to them. Especially if you are new to theme editing.
For those that are having trouble getting the image to appear in exactly the right place, are seeing 2 header images, or are seeing a border around the image – these are all CSS related issues.
If you are seeing 2 headers, you will need to create an inline style in the Head section of your header.php file (or whichever file your particular theme uses to control the header) that replaces the CSS code in your theme’s stylesheet for the header image. You will need to use the $dynamic_header_url = dh_get_page_image_url(); function, and use the $dynamic_header_url variable in your style code that you create in the header. Unfortunately, due to the fact that almost every theme has its own custom CSS, it isn’t possible to come up with a cookie cutter solution for implementing this plugin as the procedure is going to be slightly different on each theme.
If your header position is off, or you are seeing a border around the image, these are also CSS related issues that can vary greatly from theme to theme. You will need to track these issues down in your theme’s CSS file (make a backup first!).
http://www.w3schools.com/css/default.asp
is a great place to start learning the basics of CSS.
I hope this helps some people get a step in the right direction for implementing Dynamic Headers across more and more themes.
Also, look for an update to Dynamic Headers this week which will fix many of the small bugs with the plugin, further ensure compatibility with future versions of WordPress, and increase plugin performance.
@QueenEve – Yes Dynamic Headers has been verified to work with 2.9.1 (checkout the new compatibility meter on the WordPress plugin pages). I will be updating the listed version compatibility this week when we release the latest version of Dynamic Headers.
-Dan
hi, nicasio
re: getimagesize() [function.getimagesize]: ERROR MESSAGE
love the plugin!! however, i’m getting conflicting messages regarding security. my hosting company does not recommend we “enable URL file access of your server” because it opens our wp install to injection attacks.
i posted on wordpress.org here: http://wordpress.org/support/topic/306757?replies=3#post-1349284
what are your thoughts?
Just found your plugin via google.
I had a few suggestions if you don’t mind.
For those of us that use wordpress-mu this will not seem to be a valid option as the header images are all saved in the same directory. Meaning blog#1 would see the header choices in their dropdown from blog#2 as well as their own.
May I suggest that you store the header images in the /wp-content/blogs.dir/blogid#/files directory? (same place that wp-gallery stores images). I’m guessing it would be a simple code change but have not yet looked.
besides, as of wp 3.0 we’ll all be using mu anyhow, so might as well get out ahead of the curve on this one.
second:
How about calling the wp-gallery script itself for uploading new images? This would keep the user seeing a familiar interface.
third:
How about default category images?
Is there any thought to adding a function to the category admin page, where a user could then select a default image for the category so that the user does not have to input a custom field on every post for the given category?
Hi:
Nicasio, thanks for the great plugin!!! It is great!!!
Some solutions
For those that are having trouble getting the image to appear in exactly the right place, are seeing 2 header images, or are seeing a border around the image… I find a solution for swf files.
You just got to rewrite some code on custom_header.php puglin.
You got to use plugin editor en wp and choose custom header file.
First find:
Then write how many pix got for width and height your file. For example:
Second find:
<embed src="” wmode=”transparent” quality=”high” bgcolor=”#ffffff” width=”" height=”" name=”mediaHeader” align=”middle” allowScriptAccess=”sameDomain” allowFullScreen=”false” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />
Then write again how many pix got for width and height your *.swf file. For example:
<embed src="” wmode=”transparent” quality=”high” bgcolor=”#ffffff” width=”600″ height=”100″ name=”mediaHeader” align=”middle” allowScriptAccess=”sameDomain” allowFullScreen=”false” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />
Thanks
Claudio
Instaling wordpress in local user (macosx) causes a bug and pages do not load hedaer images.
Also don’t work the links to “upload” … etc.
When it would be:
http://macintosh.local/~myusername/wordpress/wp-admin/admin.php?page=dhnd_add_menu
it swhows:
http://macintosh.local/wp-admin/admin.php?page=dhnd_add_menu
Seems to be the plugin don’t recognises the home directory?
????
(sorry for my bad english)
Hi,
I can’t get this plugin to run correctly. As soon as I put the PHP Code in may header the hole desing gets messed up. The Title an discription move unter the header picture …..
Would be nice to get this running !
THX Bastian
Great plugin. Really like your work. One question though. How can I display a .jpg-file if flash is not installed?
Hi guys, thanks you so much for this great & useful plugin.
I found out one useful function for me to add: the possibility to give the img-file the attribute to equip the image with a little more funktion. Anyway i managed to ad one more field inside the “manage files”-admin section and modified the other plugin-files to save the given attribute(value) with the file …and this for me makes your plugin even more irreplaceable.
So what do you think of this function to integrate into the plugin’s future release so other bloggers outside there could use it too?
Again… thank you very much.
the attribute “map” (it just disappeared)
Hi, Nicasio,
i see you guys updated the plugin. i no longer have the error message i used to receive.
i’m using it for another site now, utilizing the DODO theme. here is a production version of that site: http://project.bucktowndigital.com
i have followed the plugin instructions for Option 1 (Recommended). It’s not working.
i also tried Option 2, but was unable to figure it out.
here is what the header code looks like in my “header.php” file… can you recommend a solution?
Big Bricks
Bricks on the Run
<li>
i really appreciate your help. thanks.
Hi,
Is it possible to have a dynamic header image but still keep the blog title (and associated link back to the homepage?
Thanks!
hi, I’m working with your plugin, changing the default theme. I make a new theme, with one image for the home, and other for the default pages, I tested all at my machine apache server, and when I know all works fine, I uploaded to the server, I started activating your plugin, and it seems that don´t give me an error, but when I go to the configuration plugin pages on wp-admin, all the pages are blank, it seem that are empty, the browsers don’t show any error, I don’t know if is a server configuration mistake or any permisions error, I give 777 for al the plugin folder…. can you suggest somethin? I’m lost
thanks
Awesome work sir – saved me a lot of hand coding.
)
Very best
John
Hi Guys,
great plugin. I am using it on one of my Blog sites.
In total I use 10 different headers and I would like to have a group of 4 random headers just for my home page. Is this possible ?
thx
Wilbert
Hi, I want to add this plugin to a wordpress theme called atahualpa. I try to replace the existing header code with dynamic headers code, but the page just breaks with php errors. Any help would be great, if you need more info as well, just let me know.
Thanks,
Josh
Great plugin – many thanks
I wanted to have the header image as a background using css. I got it working and thought I’d post this in case it helps someone else. This is what I did in my header.php
<div id="media" style="background: url('’) no-repeat; “>
Sorry code disappeared in the last comment. I hope this works:
[code]
<div id="media" style="background: url('') no-repeat; ">
[/code]
Hey
Dynamic headers only work with my parent pages, not the children pages. They are just blank… How do I solve this?
(works like a charm on my other wordpress sites…
Thanks for a great plugin!
is there any way to config headers for category, subcategory, and all pages inside them?
thank you
On WP 2.9.2 and Tarski theme there seems to be a conflict with pluggable.php concerning header location.
This is the error message:
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/…/org/wp-content/plugins/dynamic-headers.php:1) in /www/htdocs/…/org/wp-includes/pluggable.php on line 868
Hi Dan,
I just went in and noticed that in FF it appears that the plug in has stopped working suddenly! Everything was working fine as of yesterday PM, but when I checked some of my pages this AM, I noticed that the header was missing on the pages beyond the homepage. I went into the settings for your plug in, tweaked a couple of things to see if that helped, and now all headers are gone in FF.
Everything is working fine in IE, but when you goto my site in FF, the plug in is failing to render my header image.
Can you please take a look at my site and let me know if there’s something I’m missing?
Thanks,
Zezo One
Editor-In-Chief
BasslineRumble.com
Hello
I am unable to make this work on my site carcyclopedia.in despite on latest versions of both wordpress and the plugin. Can you please have a look at my site http://carcyclopedia.in . This is the code that it renders
AC_FL_RunContent = 0;Hello
Does this plugin works smoothly on 2.9.2 . I had this smoothly functioning on a 2.9.1 version of wordpress @ http://www.sober.ws but doesn’t even show up on a 2.9.2 version on the same theme . Any help will be immensely appreciated.
Hi guys, great plugin!!!
I’d like to display the image as a background-image, so i can still put some text on it. I’m quite sure, there has to be a way using option 2, but since i don’t know anything about php, i’d be greatful for some help.
Thank You
Paul
i have installed the plugin and activated it successfully n also created folder header-images in wp-content but still im ggetting error :
“It looks like wp-content/header-images/ is not writable or does not exist.
You will need to create this directory make this directory writable in order for the plugin to work.”
i have tested it on another website it worked there fine but on original website i get error. please reply with a quick nice solution. thanks in advance