0

I have a a standard ctools modal window. I am able to style the header section title text, and customize that text, but I want to change the right side of the header which has "Close window" and an X icon.

Specifically, I want to use a different X icon and remove the text "Close window". How do I do this?

Kara
  • 6,115
  • 16
  • 50
  • 57
Justin
  • 2,914
  • 5
  • 41
  • 66

2 Answers2

2

You can alter the settings in hook_preprocess_html function

drupal_add_js(array(
  'CToolsModal' => array(
    'closeImage' => theme('image', array(
      'path' => drupal_get_path('theme', 'mytheme') . ('/img/modal_close.png'),
      'title' => t('Close window'),
      'alt' => t('Close window'),
    )),
)), 'setting');
Marek Sotak
  • 136
  • 2
1

I created a new x icon and then went in to the ctools image folder and replaced the icon-close-window.png (the old x) with my new x.

Marvin Pinto
  • 30,138
  • 7
  • 37
  • 54