Forum Replies Created
-
AuthorPosts
-
Peter
MemberI don’t know why the code wont show. I will try to post it again WITHOUT the php tags.
—————————————–add_filter(‘tribe_get_events_title’, ‘my_get_events_title’);
function my_get_events_title($title){
if( is_tax() ){
return $title;
}else{
return ‘Kalender’;
}
}
Peter
MemberThe code…
—————Peter
MemberInside my themes functions.php I insert this code
require_once('http://furesoehoerecenter.dk/custom_lib/custom_functions.php');The custom_functions.php file I created contains this code:
Peter
MemberHi Jonah,
When I add the following code to function.php my entire site goes blank.
require_once('library/sidebar.php');How can that be?
Peter
MemberThanks. I will test it later this week.
If I would like to avoid editing the themes function.php, is there anyway I am able to make my own custom function file?
That way I won’t loose my changes when I update the theme.
Peter
MemberRob, Is this the code I should be using in the function.php file then?
add_filter('tribe_get_events_title', 'my_get_events_title');function my_get_events_title($title){
if( is_tax() ){
return $title;
}else{
return 'My Title';
}
}
Peter
MemberThere is no the_title() function in the page.php file.
The theme I am using is called Karma from TrueThemes: http://themeforest.net/item/karma-clean-and-modern-wordpress-theme/168737
I will try to look for the_title() function.
Peter
MemberI’ve tried to paste the code in the middle of the existing code and no change was made to the frontend.
Peter
MemberBefore I add any code to the page.php file, I would like to know where exactly in that file, I should please the code.
Before, after, in between what part of the code?
Peter
MemberHi Jonah,
I’ve tried to add the code to ecp-page-template.php without any result. I can’t find the page.php file. Where might that be located?
Peter
Member> Rob
Thanks. I will stay tuned.> Julien
I need to change the calendar title saying “Calendar of EventsCalendar of Events”.Peter
MemberThe only modifications made to this theme is the following.
——————————————————
.content_full_width {font-size:14px !important;}
#header .logo {margin-top: -32px !important;}
#header .logo {width:960px !important;}
#header .logo {text-align:center !important;}
.header-holder {height: 154px !important;}
#menu-main-nav {width:790px !important;}
#menu-main-nav {margin-right:64px !important;}
.home-flash-slider {width:840px !important;}
.home-flash-slider {margin-top:115px !important;}
#menu-main-nav .drop ul a span {font-size:16px !important;}
#menu-main-nav .drop ul a span {text-align:left !important;}
.page-id-227 #content .message_blue, .page-id-227 .content_full_width .message_blue {width:580px !important;}#tribe-events-calendar-header .tribe-events-calendar-buttons {
margin-top: 0;
}
——————————————————Besides these modifications the theme is complete standard.
Peter
MemberWhen I try to activate the Twenty Eleven 1.3 theme from WordPress the header is only showing “Calendar of Events”.
Is the issue now located in the Karma theme I am using?
Peter
MemberWhat theme should I try to revert?
Peter
MemberI’ve sent you an email with the .mo and .po files attached.
-
AuthorPosts
