Menaka S. thank you for your quick response. I was doing a travel day yesterday and didn’t see this until now. Thank you.
So I can not get to the child’s theme php.function through the site but in the C Panel I can(please look at bottom of all my writing). I put the code in from your site to add a widget before the feature images on the home page…which all worked out great. It wasn’t until I added the new code that I copied above (the link) and went to look at the site that the error appeared.
I have never touched the php function because I have always been terrified of it and breaking the site, which looks like I did.
I also found this link on you tube that I think could help https://www.youtube.com/watch?v=434sUQbBum8&list=TLuJ4UpHDyyQQ but I’m nervous about doing it because I haven’t ever done anything like this.
<?php
/* Write your awesome functions below */
/****** CODE TO PUT WIDGET BEFORE FEATURE IMAGE ON HOMEPAGE */
add_filter( ‘tc_default_widgets’ , ‘add_featured_page_widget’ );
function add_featured_page_widget( $defaults ) {
$defaults[‘fp_widgets’] = array(
‘name’ => __( ‘Featured Pages Widget’ , ‘customizr’ ),
‘description’ => __( ‘Above the featured pages area on home’ , ‘customizr’ )
);
return $defaults;
}
add_action(‘__before_fp’ , ‘display_my_fp_widget’);
function display_my_fp_widget() {
dynamic_sidebar(‘fp_widgets’);
}
/****** END OF CODE FOR WIDGET */
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
add_filter( ‘tc_credits_display’, ‘my_credits_display’ );
function my_credits_display($html) {
$logo_src = esc_attr ( tc__f( ‘__get_option’ , ‘tc_logo_upload’) ) ;
if ( empty($logo_src) )
return $html;
if ( is_numeric($logo_src) ) {
$_attachment_data = wp_get_attachment_image_src( $logo_src , ‘large’ );
$logo_src = $_attachment_data[0];
}
?>
<div class=”span4 credits”>
<?php
$credits = sprintf( ‘<p> · ? %1$s %4$s · Designed by %5$s ·</p>’,
esc_attr( date( ‘Y’ ) ),
esc_url( home_url() ),
esc_attr(get_bloginfo()),
‘<img src=”‘.$logo_src.'” alt=”‘.esc_attr(get_bloginfo()).'”>’,
‘Press Customizr‘
);
echo $credits;
?>
</div>
<?php
add_action(‘__before_fp’ , ‘display_my_fp_widget’);
function display_my_fp_widget() {
dynamic_sidebar(‘fp_widgets’);
}
/****** END OF CODE FOR WIDGET */