Need help? Check out our Support site, then


How to: Change CSS for Dynamic Header (Nicasio Team)

  1. Dears,

    I´m using Atomattics Chunk Theme and now I want to use "dynamic headers" as well. So far so good, now I was trying to change the css-script… didn´t work that well.

    This is what they say how to do it:
    <strong>6. 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).</p> <p>You have 2 options for adding your dynamic header:</p> <p>Option 1 (Recommended): Simply drop the this line of code into your theme file that controls your header (usually header.php) </p> <p>Note: The location to add this code can vary widely from theme to theme and depending on your theme's css settings you may have to use Option 2 and modify the CSS of your theme **BACKUP ANY THEME FILES BEFORE MODIFYING** </p> <p><?php if(function_exists('show_media_header')){ show_media_header(); } ?></p> <p>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.</p> <p>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. </p> <p><?php if(function_exists('dh_get_page_image_url')){ $dynamic_header_url = dh_get_page_image_url(); } ?></p> <p>You can then use the variable $dynamic_header_url however you see fit. It will contain the full path to your media file for that particular page/post, including any default media that should be shown.<br /> It is advised that most users simply use Option 1 if at all possible, as it is significantly more simple.<br /> Note: This function can return NULL or the string 'None' if there are no headers for the current page. </strong>

    Please! Help! Where do I have to put all this stuff?

  2. Those instructions are for a WordPress.org blog, not a WordPress.com blog. See http://support.wordpress.com/com-vs-org/ to learn about the differences.

    This support forum is for blogs that are setup on WordPress.com. If you are using WordPress.com, please reply with a link to the blog you are working on. If you are using WordPress.org, there is a separate/volunteer forum where you can request help at http://wordpress.org/support/

Topic Closed

This topic has been closed to new replies.

About this Topic