IdeFixx
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Creating A Child Theme, CSS Not WorkingHi @toriaa, try it with this code in functions.php:
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( 'parent-style', get_stylesheet_directory_uri() . '/style.css', false, '1.0', 'all' ); }https://developer.wordpress.org/reference/functions/get_stylesheet_directory_uri/
Forum: Themes and Templates
In reply to: [Twenty Twenty] Date archive link in child themeComplete child theme’s code is here: https://github.com/idefixxed/automat-2020
Forum: Themes and Templates
In reply to: [Twenty Twenty] Date archive link in child themeHi @philhuhn, thanks, but this (URI link change) does not solve my problem. Even with this code
require get_stylesheet_directory_uri() . '/inc/template-tags.php'it’s impossible to load that piece of lovely code. Finally, after some RTFM readings I know why (links in my previous post).Anyway -> Problem solved, here’s an updated child theme
functions.php:add_action( 'after_setup_theme', function() { add_filter( 'twentytwenty_post_meta_location_single_top', function() { ?> <div class="post-meta-wrapper<?php echo esc_attr( $post_meta_wrapper_classes ); ?>"> <ul class="post-meta<?php echo esc_attr( $post_meta_classes ); ?>"> <li class="post-date meta-wrapper"> <span class="meta-icon"> <span class="screen-reader-text"><?php _e( 'Post date', 'twentytwenty' ); ?></span> <?php twentytwenty_the_theme_svg( 'calendar' ); ?> </span> <span class="meta-text"> <a href="<?php echo get_day_link(get_post_time('Y'), get_post_time('m'), get_post_time('j')); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a> </span> </li> <?php $post_tags = get_the_tags(); if ( ! empty ( $post_tags ) ) { ?> <li class="post-tags meta-wrapper"> <span class="meta-icon"> <span class="screen-reader-text"><?php _e( 'Tags', 'twentytwenty' ); ?></span> <?php twentytwenty_the_theme_svg( 'tag' ); ?> </span> <span class="meta-text"> <?php the_tags( '', ', ', '' ); ?> </span> </li> <?php } //else { echo 'no tags'; } ?> <?php if ( ! empty ( $comments ) ) { ?> <li class="post-comment-link meta-wrapper"> <span class="meta-icon"> <?php twentytwenty_the_theme_svg( 'comment' ); ?> </span> <span class="meta-text"> <?php comments_popup_link(); ?> </span> </li> <?php } //else { echo 'no comments'; } ?> <?php if ( is_sticky() ) { ?> <li class="post-sticky meta-wrapper"> <span class="meta-icon"> <?php twentytwenty_the_theme_svg( 'bookmark' ); ?> </span> <span class="meta-text"> <?php _e( 'Sticky post', 'twentytwenty' ); ?> </span> </li> <?php } //else { echo 'not a sticky post'; } ?> </ul> </div> <?php } ); } );And remove tags in the bottom:
add_filter( 'twentytwenty_post_meta_location_single_bottom', array( //'tags', ) );Forum: Themes and Templates
In reply to: [Twenty Twenty] Date archive link in child themeThanks @diagonale, that’s not exactly what I’m looking for.
Lower is the code from twentytwenty child theme
functions.php.It’s almost done, except one thing -> Checking of the post meta variables/values does not work. For example if some post does not have a tag, empty HTML is shown.
add_action( 'after_setup_theme', function() { add_filter( 'twentytwenty_post_meta_location_single_top', function() { ?> <div class="post-meta-wrapper<?php echo esc_attr( $post_meta_wrapper_classes ); ?>"> <ul class="post-meta<?php echo esc_attr( $post_meta_classes ); ?>"> <?php if ( ! empty ( 'post-date' ) ) { ?> <li class="post-date meta-wrapper"> <span class="meta-icon"> <span class="screen-reader-text"><?php _e( 'Post date', 'twentytwenty' ); ?></span> <?php twentytwenty_the_theme_svg( 'calendar' ); ?> </span> <span class="meta-text"> <a href="<?php echo get_day_link(get_post_time('Y'), get_post_time('m'), get_post_time('j')); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a> </span> </li> <?php } else { echo 'nothing1'; } ?> <?php if ( ! empty ( 'tags' ) ) { ?> <li class="post-tags meta-wrapper"> <span class="meta-icon"> <span class="screen-reader-text"><?php _e( 'Tags', 'twentytwenty' ); ?></span> <?php twentytwenty_the_theme_svg( 'tag' ); ?> </span> <span class="meta-text"> <?php the_tags( '', ', ', '' ); ?> </span> </li> <?php } else { echo 'nothing2'; } ?> <?php if ( ! empty ( 'comments' ) ) { ?> <li class="post-comment-link meta-wrapper"> <span class="meta-icon"> <?php twentytwenty_the_theme_svg( 'comment' ); ?> </span> <span class="meta-text"> <?php comments_popup_link(); ?> </span> </li> <?php } else { echo 'nothing3'; } ?> </ul> </div> <?php } ); } );Here are some similar questions:
- hide the text βno commentsβ – thx @alchymyth
- How to remove the hyperlink of the DATE appearing after post title – copying parts of code from
/inc/template-tags.phpinto child theme functions does not work - Changing Template Tags – yes, work with filters; thx @joyously
- How to add publish date to pages, just like posts – this is where I get the code above; thx again @alchymyth π
Useful links:
Forum: Themes and Templates
In reply to: [Ample] GithubThank you, dear @premi0. Will do ;-).
Forum: Themes and Templates
In reply to: [Ample] Header Image HTML codeThx, dear @tgboy.
Forum: Themes and Templates
In reply to: [Ample] Header Image HTML codeI did my homework and looked closer to the WP function used by Ample theme.
Here is a solution: https://developer.wordpress.org/themes/functionality/custom-headers/#displaying-custom-header
Let me appologize… next time more homeworks before asking ;-).Hi angelo, thank you for your help.
1. OK, let’s do this with Custom Attributes.
2. Well, I mean, if it’s easy to insert link to Custom Attribute (e.g. it’s possible filter events by actor, director,…). Or is it better to get custom copy of WP Tags for this purpose?
Please, have a look at screenshots of WPMovieLibrary plugin – Edit movies (Actors as custom WP Tags): https://wordpress.org/plugins/wpmovielibrary/screenshots/
What do you think, would it be possible to get some WPMovieLibrary functions to yours plugin? Or vice versa?
I already know, that I have to study yours tutorials (http://wp-events-plugin.com/tutorials/).
Let me know if you have any suggestions.
Thanks in advance, sir ;-).
Sorry for that, I was posting my question on yesterday’s evening (07-09-2014 @ 10 p.m.). It didn’t show up, so I tried to post it again.
Same for me – no thumbnails @ topic.
Does anyone have some workaround? Any advice would be appreciated.
WP v. 1.8
bbPress v. 2.5.2
GD bbPress Attachments v. 2.0http://wordpress.org/plugins/bbpress-topic-thumbnails/
http://wordpress.org/plugins/gd-bbpress-attachments/Forum: Themes and Templates
In reply to: [iBuddy] Category archivesHi Ayman,
finally, I had some time to do a basic test – switched all plugins off (BuddyPress and iBuddy theme active).
Page with “Blog” template was still showing last 10 entries, even on subpages 2., 3., etc. (as mentioned @ my first post).Categories archives works fine! So, I had to stop using “Page with a Blog template”.
Forum: Plugins
In reply to: [Plugin: Scissors and Watermark] getting error: cannot update metadata@jamin84: Thanks!
Forum: Themes and Templates
In reply to: [iBuddy] Blank lines at top of the HTML source codeThanks for your time to build up & maintenance an unique theme for BP! Here is our demo/beta website: http://rcmarilyn.cz/
Cheers!
Forum: Themes and Templates
In reply to: [iBuddy] Blank lines at top of the HTML source codeHi,
I have moved my test site live (still DEV ver.) @ shared webhosting (PHP 5.4) and I had some more problems with “text output” in PHP scripts.
So I have just removed empty spaces in the file “custom-sidebars.php @ line 84” (could be called BOM) +++
?>added at the last line.Website works fine now π
WP ver. 3.5.2, BP ver. 1.8 +++ these “basic conf. plugins”:
BP Group Activities Notifier, BP Redirect to Profile for Buddypress, BuddyPress Toolbar, Cleaner Gallery, Gallery Columns, prettyPhoto Media, Regenerate Thumbnails, resize-on-upload, rtMedia for WordPress, BuddyPress and bbPress, UploadPlus : File Name Cleaner, User Name Availability Checker for wordpress/buddypress, WP Migrate DBForum: Plugins
In reply to: [Admin Columns] Export settingsPerfect! Thanks for a recomend of this plugin.