dianaascher

Member

Forum Replies Created

  • In reply to: change slug for multiple pages with same root

    #38862

    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.

    In reply to: change slug for multiple pages with same root

    #38860

    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.

    In reply to: change slug for multiple pages with same root

    #38858

    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?

    In reply to: change slug for multiple pages with same root

    #38857

    Thank you! You really saved my bacon. So grateful!!!

    In reply to: change slug for multiple pages with same root

    #38855

    It doesn’t seem to do anything. 🙁

    In reply to: change slug for multiple pages with same root

    #38853

    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

    In reply to: change slug for multiple pages with same root

    #38851

    Ahhh. Or maybe I should just change the slugs to a-main-whatever?

    In reply to: change slug for multiple pages with same root

    #38849

    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

    Hi 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

    In reply to: Two distinct looksand headers for half of website

    #38739

    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