WordPress.org

Forums

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

  1. dfTruF
    Member
    Posted 2 years 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CMS Tree Page View
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic