New Landing How can we help? Themeforest Theme Support Pinpoint Setting Accent Colour By Page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Pinpoint
  • #1616
    sobrilliant
    Member
    Post count: 22

    Hello i wrote a ticket before but i recently tried to use your solution but didn’t work ๐Ÿ™

    I want to change the accent colour based on the page i am on, (it would be cool if you could make this a feature for the theme) but for now the code is:


    if(is_page('about-us')){
    $accent_color = 'ff00db';
    } elseif(is_page('photo-booths')){
    $accent_color = 'f76908';
    } elseif(is_page('private-parties')){
    $accent_color = '0000fe';
    } elseif(is_page('corporate')){
    $accent_color = 'b401f3';
    } elseif(is_page('marketing')){
    $accent_color = '00e600';
    } elseif(is_page('gallery')){
    $accent_color = '22a8dd';
    } elseif(is_page('contact')){
    $accent_color = 'ff0000';
    } elseif(is_page('photo-wall')){
    $accent_color = '29ffc9';
    } elseif(is_page('latest-products')){
    $accent_color = 'fbaffb';
    } elseif(is_page('blog')){
    $accent_color = 'fed100';
    } else {
    $accent_color = 'ff0000';
    }

    I pasted that into css/custom-styles.css.php below this line (which i deleted out

    $accent_color = get_option('accent_color', '#00aeef');

    But what happens when i do this is the page looses styling options and the font changes and the background disapears, and it goes quite funny. How can i properly implement this so that this will work?

    #1653
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Hi,

    What happens if you paste just this, above, like so:

    if(is_page('about-us')){
    $accent_color = 'ff00db';
    }

    $accent_color = get_option('accent_color', '#00aeef');

    If that worked, try with the whole block and optionally replace all “elseif” with “if”

    Regards,
    โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

    Cosmin
    Support Assistant

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register