Skip to main content

Blogs

you can download and use this module Header and Footer Scripts

/**
* Implements hook_page_attachments_alter().
*
* Alter attachments (typically assets) to a page before it is rendered.
*/
function MY-MODULE-NAME_page_attachments_alter(array &$attachments) {
 
  $attachments['#attached']['html_head'][] = [
  [
  ' '#type'  => 'html_tag',
    '#tag'   => 'script',
    '#value' => '<script type="text/javascript">console.log("HFS Header3");</script>',
  ], 'MY-MODULE-NAME'
  ];
}

you can download and use this module Header and Footer Scripts

/**
* Implements hook_page_attachments_alter().
*
* Alter attachments (typically assets) to a page before it is rendered.
*/
function MY-MODULE-NAME_page_attachments_alter(array &$attachments) { $background_color = '#000';
  $attachments['#attached']['html_head'][] = [
  [
  '#tag' => 'style',
  '#value' => '#left_col #content { background: ' . $background_color . '; }',
  ], 'MY-MODULE-NAME'
  ];
}

I have the same issue due to multi database setup in D6.

plz read the following:
https://drupal.org/node/662860#comment-2391510

In your .htaccess you can try this code:
php_value memory_limit 64M

Please add this code in your theme functions.php file

/** CSS Cache Buster */
add_filter( 'stylesheet_uri', 'child_stylesheet_uri' );
function child_stylesheet_uri( $stylesheet_uri ) { return add_query_arg( 'v', filemtime( get_stylesheet_directory() . '/style.css' ), $stylesheet_uri);
}

My clients want to change drupal blog->articles and i have done this using string override module http://drupal.org/project/stringoverrides

But for blog links we need to use these strings

!username's blog -> !username's article

!username's latest blog -> !username's latest article

@name's blog ->@name's article

@username's blog ->@username's article

Blog -> Article

blog -> article

you need to  change the line

header("Cache-Control: store, no-cache, must-revalidate");

to

header("Cache-Control: no-store, no-cache, must-revalidate");

in function drupal_page_header() in ./include/bootstrap.inc

if($device->getCapability('is_wireless_device') == 'true') { print 'This is a mobile device';
} else { print 'This is NOT a mobile device';
}
function wpp_change_search_url_rewrite() {
    if ( is_search() && ! empty( $_GET['s'] ) ) {
        wp_redirect( home_url( "/search/" ) . urlencode( get_query_var( 's' ) ) );
        exit();
    }    
}
add_action( 'template_redirect', 'wpp_change_search_url_rewrite' );

write this line at the top of settings.php file:

header('P3P: CP="CAO PSA OUR"');

This line allows IE to accept 3rd party cookies.