Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Help updating footer.php for cloudstrap theme

         

proco2017

7:42 pm on May 19, 2017 (gmt 0)

5+ Year Member



I have an image that is in the footer.php in the themes/cloudstrap directory.

The image is defined without an ALT attribute in the IMG tag and I want to add it.

I cannot find any way in wordpress to add the alt attribute and changing the footer.php does not work either - it just loses the changes.

ergophobe

11:10 pm on May 19, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you downloaded the cloudstrap theme, you're going to blow away changes anytime it updates. So for starters, you should create a child theme and work from there.

proco2017

4:33 pm on May 20, 2017 (gmt 0)

5+ Year Member



Easier said than done. I created a child theme and put in the child style.css and then the footer.php. When I load the site both files are deleted. I guess there must be some mechanism that checks for child themes and deletes any files it finds in there.

All I want is to do is add: alt="company name"

proco2017

10:19 pm on May 20, 2017 (gmt 0)

5+ Year Member



ergophobe,

Got it working finally. I found the bulletproof security plugin on the site, I had to exclude the child theme from being monitored (and having the files removed). Once the child theme was excluded I managed to make the change to the footer.php and the alt attribute now displays.

ergophobe

7:46 pm on May 23, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ah, there you go. That would be pretty odd for a theme to blow away child themes!