joshbuchea
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Beta Tester] Can't test 4.4RC using Beta Test PluginI can confirm the solution from @brechtvds works perfect to update to 4.4 RC. Tools > Beta Testing > Bleeding edge nightlies > Save Changes. Then try updating again.
Forum: Plugins
In reply to: [Force Lowercase URLs] Should exclude query variables tooGreat idea Yaron! Gist
Forum: Plugins
In reply to: [Force Lowercase URLs] Should exclude query variables tooOops, messed up the github link: https://github.com/joshbuchea/wp-force-lowercase-urls
Forum: Plugins
In reply to: [Force Lowercase URLs] Should exclude query variables tooYaron – I created a new plugin that includes your recommended change. The plan is to regularly update and maintain this plugin. I haven’t published to the WordPress Plugin Repository yet, but intend to. Here’s the link: https://github.com/joshbuchea/wordpress-force-lowercase-urls. Let me know what you think, or maybe star it on GitHub if you find it useful. Thanks!
Jackie Boy – Thanks for the kind words. Glad I was able to help!
Thanks! Changing the footer text is usually the first request I receive when creating a child a theme for a client project.
No problem. Let me know if you have any issues.
I put together a github repo for anyone trying to start a Storefront child theme. Check out https://github.com/joshbuchea/storefront-child-theme-starter
Thanks. You should use mjepson’s code that includes the
custom_storefront_credit()
function, as his method is cleaner. The code will automatically pull your site name from WordPress, but if you wish to override that manually (not recommended), simply replace the following line:
© <?php echo get_bloginfo( 'name' ) . ' ' . get_the_date( 'Y' ); ?>
with:
© YourWebsiteNameHere <?php echo get_the_date( 'Y' ); ?>
I didn’t edit any template files, I simply pasted the following code into functions.php in my child theme:
function storefront_credit() { ?> <div class="site-info"> © <?php echo get_bloginfo( 'name' ) . ' ' . get_the_date( 'Y' ); ?> </div><!-- .site-info --> <?php }
Although my code is shorter and accomplishes removing the credits from the footer also, your code looks like the “proper” way to do it. Thank you for your response!
mjepson: Thanks for your response! I tried your code and while it does remove the “Designed by WooThemes” line in the footer, it also removes the Copyright line from the footer as well. So, if I wanted to use this solution and I still wanted the copyright line in the footer, I would need to make sure my child theme includes a footer.php file and I would need to add the copyright line to footer.php.
While I believe I your solution is the “proper” way to remove this line from the credits, I was able to accomplish this by only modifying one file in my child theme by:
Copying the original storefront_credit function from /storefront/inc/structure/footer.php into my child theme’s functions.php to override the storefront_credit function. Then, I simply removed all lines within
<div class="siteinfo">
except for the Copyright line. The new storefront_credit function in my child theme’s functions.php is:function storefront_credit() { ?> <div class="site-info"> © <?php echo get_bloginfo( 'name' ) . ' ' . get_the_date( 'Y' ); ?> </div><!-- .site-info --> <?php }
Thanks. I tried that, and it didn’t seem to work though. Any ideas why?
However, I was able to remove the “Storefront designed by WooThemes.” line from the footer by creating a child theme and overriding the storefront_credit() function in the child theme’s functions.php file. The original storefront_credit() function is in /storefront/inc/structure/footer.php.