5.5.12
I would very much like a tip on how to check if the code is executed at all. Something like putting a “debug.print ‘hi'” and looking at the console to see if it’s printed. ??
Here’s my php btw. None of the functions in there seems to work.
<?php
/**
* This is where you can copy and paste your functions !
*/
function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter';
//add Facebook
$contactmethods['facebook'] = 'Facebook';
return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);
/**************************************************/
/* ?ndra i "hover"-texterna f?r sociala l?nkar */
/**************************************************/
add_filter('tc_default_socials' , 'change_link_title');
function change_link_title($socials) {
foreach ($socials as $key => $value) {
$socials[$key]['link_title'] = str_replace('Follow me', 'Folj oss', $socials[$key]['link_title']);
$socials[$key]['link_title'] = str_replace('Subscribe to my rss feed', 'Prenumerera p? v?rt RSS-fl?de', $socials[$key]['link_title']);
}
return $socials;
}
/**************************************************/
// START OF Center Header Block Items (Needs additional CSS code in Child Theme style.css)
// NAVBAR WRAPPER //
/* Beh?vs inte f?r Customizr 3.2 */
// LOGO //
// center the logo //
/* Beh?vs inte f?r Customizr 3.2 */
// TAGLINE //
// center the Tagline
add_filter('tc_tagline_class', 'rdc_tagline_class');
function rdc_tagline_class() {
return 'span12';
}
// SOCIAL ICONS //
// center the output of tc_social_in_header:
add_filter('tc_social_header_block_class', 'rdc_social_header_block_class');
function rdc_social_header_block_class($social_header_block_class) {
if ('span5' == $social_header_block_class) {
$social_header_block_class = 'span12';
}
return $social_header_block_class;
}
// END OF Center Header Block Items (Needs additional CSS code in Child Theme style.css)
/* ?ndra "credits"-texten i footern. */
add_filter('tc_credits_display', 'my_custom_credits');
function my_custom_credits(){
$credits = 'Site av Interes AB. Baserad p? temat Customizr av Themes & Co';
$newline_credits = '';
return '
<div class="span4 credits">
<p> · ? '.esc_attr( date( 'Y' ) ).' <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> · '.($credits ? $credits : 'Designed by <a href="https://www.themesandco.com/">Themes & Co</a>').' ·'.($newline_credits ? '<br />· '.$newline_credits.' ·' : '').'</p> </div>';
}