ThemeShaper Forums » Thematic

Making Rounded-corner Comment Boxes

(5 posts)
  • Started 4 years ago by Mischif
  • Latest reply from Chris
  • This topic is resolved
  1. I'm trying to incorporate Will Mayo's CSS Speech Bubbles into my theme, but I need to insert some Javascript into my header and I don't know how. Is there some small PHP script I can hook into my functions.php file that will allow me to put some javascript into my header?

    Also, how could I move all the stuff about who posted the comment to just below the outside of the colored box?

    Posted 4 years ago #
  2. Hey,

    try the following code in your child theme's functions.php:

    function my_scripts() {
    
    wp_register_script('rounded_corners', get_bloginfo('stylesheet_directory') . '/js/rounded_corners.inc.js');
    wp_enqueue_script('rounded_corners');
    
    }
    add_action('init', 'my_scripts');

    Cheers,

    Chris

    Posted 4 years ago #
  3. I just figured out that it's modifying a single class, so is there any one class that will only affect the text boxes for the comments?

    Posted 4 years ago #
  4. I managed to work with what I have and now I've got the rounded corners up, but I can't find a place to insert a picture for the bottom of the comment box.

    Posted 4 years ago #
  5. I don't know if this will work at all .. try background: url(images/..)

    Cheers,

    Chris

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.