Compare commits
2 commits
main
...
kv-neustad
Author | SHA1 | Date | |
---|---|---|---|
Willi Junga | 924ca80008 | ||
Willi Junga | 98faf9e839 |
14
README.md
14
README.md
|
@ -2,6 +2,10 @@
|
|||
|
||||
Many many branches of costumized Childthemes for Urwahl3000
|
||||
|
||||
Credits to: https://chatbegruenung.de/direct/jungawil & https://chatbegruenung.de/direct/schmi531
|
||||
|
||||
For feedback and _voluntary_ advice: https://chatbegruenung.de/channel/urwahl3000
|
||||
|
||||
|
||||
1. Select branch from: https://git.verdigado.com/NB-Public/Urwahl3000-Childthemes/branches/
|
||||
2. Download branch as ZIP
|
||||
|
@ -11,3 +15,13 @@ Many many branches of costumized Childthemes for Urwahl3000
|
|||
|
||||
|
||||
The main branch is protected.
|
||||
|
||||
|
||||
## Version Changes
|
||||
|
||||
### V0.1
|
||||
|
||||
|
||||
_Di, 19.01.2021 10:28_
|
||||
|
||||
* add tag support to pages
|
||||
|
|
|
@ -7,7 +7,28 @@ function kr8_childtheme() {
|
|||
}
|
||||
add_action( 'wp_enqueue_scripts', 'kr8_childtheme',1000 );
|
||||
|
||||
// add tag support to pages
|
||||
|
||||
function tags_support_all() {
|
||||
|
||||
register_taxonomy_for_object_type('post_tag', 'page');
|
||||
|
||||
}
|
||||
|
||||
// ensure all tags are included in queries
|
||||
|
||||
function tags_support_query($wp_query) {
|
||||
|
||||
if ($wp_query->get('tag')) $wp_query->set('post_type', 'any');
|
||||
|
||||
}
|
||||
|
||||
// tag hooks
|
||||
|
||||
add_action('init', 'tags_support_all');
|
||||
|
||||
add_action('pre_get_posts', 'tags_support_query');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
Theme Name: Urwahl3000 Childtheme
|
||||
Theme Name: Urwahl3000 Childtheme - kv-neustadt-weinstrasse
|
||||
Theme URI: http://kre8tiv.de/urwahl3000/
|
||||
Description: Child-Theme für Urwahl3000
|
||||
Author: Design & Kommunikation im modulbüro
|
||||
Author URI: http://www.modulbuero.de
|
||||
Template: urwahl3000
|
||||
Version: 1.0.1
|
||||
Version: 0.1
|
||||
*/
|
||||
|
||||
/* Ab hier die eigenen Anpassungen... */
|
||||
|
|
Reference in a new issue