Forum Replies Created
-
Ingenious. Thank you so much. You guys are the most responsive developers I’ve come across and when I finally finish this thing and get paid, I will definitely be making a donation to the Graphene cause. Great work and great support. Thank you.
Yes, each page has a unique ID, but the site will evolve with new pages and posts and I doubt my client could go in and ad new IDs to the CSS. I was thinking that now that there is a mechanism to identify the pages that require the secondary style, there could be some way to change items in addition to the header.
So now that the function identifies the pages that should have the same header, can I use that same format to change things like sidebar colors, etc.? Is there a standard format I can apply?
Thank you! You really saved my bacon. So grateful!!!
It doesn’t seem to do anything. 🙁
yes, but got this:
Parse error: syntax error, unexpected T_RETURN in /home/content/c/o/r/corporatelogin/html/artemisediting/wp-content/themes/dianas-graphene/functions.php on line 10
looking for extra spaces
Ahhh. Or maybe I should just change the slugs to a-main-whatever?
Thanks, Syahir,
It still works for the top page, but not for the others. Here’s what I entered, just in case I made a stupid mistake:
/*** Manually set different header image for individual pages*/
function graphene_custom_header_image( $img_url, $post_id = false ){
if ( ! $post_id ) return $img_url;
$current_post = get_post( $post_id );
if ( stristr( $current_post->post_name, 'a-main' ) !== false ) return 'http://artemisediting.com/wp-content/uploads/2013/04/bspaheader.png';
return $img_url;
}
add_filter( 'graphene_header_image', 'graphene_custom_header_image', 10, 2 );I’m also curious: what do the 10 and 2 signify?
Thanks so much,
Diana
In reply to: search result lists, category archive lists show "string contains: " at top
June 24, 2013 at 2:22 am #38823Hi guys,
Thanks for your quick responses. Looks like it is the WP Members plugin causing the error. Any advice? This site relies heavily on that plugin.
Many thanks,
Diana
Only because the plugins that claim to do this want make use of phpBB, and I don’t want to get into that.
Viewing 10 posts - 1 through 10 (of 11 total)
- 1
- 2
