Comments (15)
There's another filter that this is all tied to that bypasses the footer credits entirely. So you could do this with something like:
function jeeves_footer_credits( $content ) {
?>
<div class="alignleft">Left Content</div>
<div class="alignright">Right Content</div>
<?php
return true;
}
add_filter('jarvis_credits', 'jeeves_footer_content');
Or you could override the footer.php with a child theme, since footer.php is 99% credits.
I'll need to document all this too.
from jarvis.
Just pushed a bunch of improvements to this.
There is now a section description that is automatically opened, that tells you the default value, and gives you all the available tags.
I also fixed the setting so that you can click the footer and go to the correct customizer setting.
from jarvis.
Thanks - I copied and pasted the copyright one for the other items, then edited them, and totally missed that I had left one in.
I don't think there's space to add the entire link with all the html to the default example. What do you think?
Perhaps once there's an actual website I could make a docs page for the footer and include various examples with some demo html that people can copy and paste. Then I will link to that. In fact I'll add a ticket for that in the minute.
For the link, you can add html in the box if you wish. I will also add a filter so that you can filter the content if you want to.
from jarvis.
A simplistic example would be that you could do the following to make the whole footer content bold:
function jeeves_footer_content( $content ) {
return '<strong>' . $content . '</strong>';
}
add_filter( 'jarvis_footer_content', 'jeeves_footer_content' );
I will add some examples for this to the docs as well :)
And I might call the example child theme Jeeves
from jarvis.
Since I want to keep the theme simple and lightweight I've decided not to add the separate left and right functionality to the footer credits box, however I will include an example of adding this feature to the docs so that it can be added with copy and paste.
from jarvis.
I would suggest to add the existing copyright info and html
"Theme: Jarvis by Pro Theme Design Top"
Into the Credits Content.
So the user can customize the text and html to their likely without also removing the Top link.
from jarvis.
oh - I'd forgotten about the top link. I have some shortcuts for adding extra features. I shall add the top link as well.
I shall also add the default somehow.
And maybe add a list of the shortcuts to the controls so they are not so hidden.
from jarvis.
A list of shortcuts would be helpful. As it would give the user some info on how to customize the content of the Credits Content.
The main reason to add the default copyright would just be to help the user customize the content. If there is a helpful customization list then there might not be a need to add the default copyright into the box.
from jarvis.
Very well done!
A few things...
The "(c): the copyright symbol ©" is listed twice. It could instead be changed to how to create a html link.
Adding something else in the Credits Content and then removing it does not bring back the default Credits Content. Correction it does so on refreshing the browser.
"The default theme footer can be reproduced with:
(privacy)(|)Pro Theme Design(|)(top)"
There is no html link in the above code
It would be good to be able to easily add a link as I could then create a Login link.
As I have gotten used to adding a login to wp-admin in the footer copyright area. Below is a tutorial I made for the Beans Framework: https://wpbeansframework.com/bottom-copyright-information/
from jarvis.
Good idea to have docs. I am also thinking that there could be a custom copyright code in a child theme. Showing some variation. I am not sure what you mean about filter the content.
Good to know that I can just add html into the box.
from jarvis.
Re: the filter, I will add
$contents = apply_filters( 'jarvis_footer_content', $contents );
So that you can do more elaborate things to the html if you want
from jarvis.
Not sure what that means. But I bet it is good..:)
from jarvis.
Is it possible to have a left side and a right side with info?
Something like this:
Kinda like a filter named left and a filter named right.
from jarvis.
A few thoughts.
The use can choose to add content to the customizer credit contents area or adding it directly to the child theme functions file.
Regarding the customizer credit contents area. Having a left and right area to what and where they want to add information. One could then for instance add credits info to the left and add the top link to the right.
from jarvis.
Sounds good to me..:)
The most important part is the coding docs in how to customize a feature.
from jarvis.
Related Issues (20)
- Rebuild the `jarvis_social_links` function so it doesn't have the Jetpack plugin requirement.
- Remove WordPress block styles from pages that will never use it HOT 1
- Ensure everything is escaped
- Add link to docs in customizer HOT 3
- Recommend installed plugins HOT 1
- Improve editor styles
- setup tgmpa to recommend plugins
- Featured image below header behind page/post title.
- More control over the Search Icon HOT 3
- Header Height - Full Height HOT 1
- Remove jarvis_video_wrapper HOT 1
- Automate customizer settings for custom post types
- Add [random] and [?] shorttags for footer content
- Improve plugin css and add support for GiveWP plugin HOT 1
- Static analysis and other notes HOT 3
- WordPress theme review
- Missing readme parts HOT 1
- switch use of file_get_contents to read_file HOT 2
- Add page number to search results page
- Hiding page title option in the customizer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jarvis.