WordPress.org

Ready to get started?Download WordPress

Forums

CMS Tree Page View
Changing color of the font in some titles on the tree (2 posts)

  1. dfTruF
    Member
    Posted 11 months ago #

    Greetings,

    I want to change color of the font in some titles on the tree, for some pages (by their id).
    I've tried modify cms_tpv_print_common_tree_stuff function, appending this kind of code:

    $("cms-tpv-632 >a").css("color","green");

    But this doesn't work (title of the page with id 632 still remains black).
    Is there any simple method for doing this?

    http://wordpress.org/extend/plugins/cms-tree-page-view/

  2. IllusionMH
    Member
    Posted 11 months ago #

    dfTruF, if you copy/paste line that you tried, then you forgot to add # before element's id.
    Proper code is
    $("#cms-tpv-632 >a").css("color","green");
    or
    jQuery("#cms-tpv-632 >a").css("color","green");
    for sure.

Reply

You must log in to post.

About this Plugin

About this Topic