wiyc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot modify header informationSadly not, I usually always do a backup but I forgot this time.
I modified a CSS to have the header shortened (https://www.westindiesyachtclub.com) in the Attitude Theme Control Panel;
And I introduced a code to modify the copyrights and credits of the theme directly in Style.css:<?php
// Remove old copyright text
add_action( ‘init’ , ‘mh_remove_copy’ );
function mh_remove_copy() {
remove_action( ‘attitude_footer’ , ‘attitude_footer_info ‘, 25 );
}// Add my own copyright text
add_action( ‘attitude_footer’ , ‘mh_footer_info’ , 25 );
function mh_footer_info() {
$output = ‘<div class=”copyright”>’.’Copyright ? [the-year] [site-link] Powered by: SUPER MARTIANS FROM MARS! ‘.'</div><!– .copyright –>’;
echo do_shortcode( $output );
}Is there is something wrong with this code ?
Or did I put it at the wrong place ?
If I give you the access codes, do you think you would be able to fix it for me ?
Forum: Fixing WordPress
In reply to: Cannot modify header informationDear BobNwp,
Thanks for your answer.
Indeed, I changed a bit of the code to make the site looking like what I wanted..
1) I modified the copyright phrasing at the bottom, removing the mention of the theme and wordpress;
2) I suppressed the large space on the top of the header to make it the smallest as possible.Then, when I logged off, the website was looking perfectly as I wanted, but I was not able to log in again !!!
Would it be helpful if I copy you the code the so could have a look and tell me what in your opinion shall I change.
Thanks a lot
Terry