Sho-Down
Forum Replies Created
-
@pratik-jain thanks for the reply Pratik, I’ll tap into that filter to change the icon.
Thanks so much @misulicus that works in my page template, I just had to add an additional bracket at the end:
<?php $customer = ''; ?> <?php if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); if ( class_exists( 'Easy_Digital_Downloads' ) ) { $customer = new EDD_Customer( $current_user->ID, true ); } if ( ! empty( $customer->id ) ) { $customer_since_date = substr( $customer->date_created, 0, strpos( $customer->date_created, ' ' ) ); $customer_since = date( 'F j, Y', str_replace( '-', '/', strtotime( $customer_since_date ) ) ); echo $customer_since; //This prints the Customer creation date echo edd_currency_filter( edd_format_amount( $customer->purchase_value ) ); // This prints the customer's purchase value } } ?>
@shivamtyagi sorry for the delay. I must have manually set some posts to “song” or something before your plugin had the “default” option in its settings (I’ve used AIOSEO since around 2008), now that I have the default option selected in the AIOSEO settings my newest posts are correctly tagged Default Object Type (Set in Social Networks) but hundreds of my other posts are set to “Song”, like 300-400 posts.
My question was is there some code I can throw in my functions.php file to change all my posts to Default Object Type (Set in Social Networks) or am I going to have to go through hundreds of posts and set them manually to Default Object Type?
ah that’s a bit over my head @misulicus, I could use little more help if you wouldn’t mind, if not I understand.
I don’t know how to put that in my custom template page file for it to output the formatted date. I can’t do:
<?php $customer_since_date = substr( $customer->date_created, 0, strpos( $customer->date_created, ' ' ) ); $customer_since = date( 'F j, Y', str_replace( '-', '/', strtotime( $customer_since_date ) ) ); ?>
I looked in customers.php and found this but it outputs December 31, 1969:
<span class="customer-since info-item editable"> <?php printf( /* translators: The date. */ esc_html__( '%s', 'easy-digital-downloads' ), esc_html( edd_date_i18n( $customer->date_created ) ) ); ?> </span>
And this just outputs $0.00:
<?php echo edd_currency_filter( edd_format_amount( $customer->purchase_value ) ); ?>
Do I need to put some code in my functions.php file and call it from there?
Ok, good deal. I appreciate the help @cklosows
That did it, thanks @cklosows
As for this inline css when I’m browsing my site https://snipboard.io/fgJLqH.jpg
I assume it’s some type of admin bar for EDD but not really sure what it is? Is it only shown to admins? I hide the WordPress admin bar with
add_filter( 'show_admin_bar', '__return_false' );
in my functions.php. Just curious what it’s purpose is.Thanks for the reply @misulicus. I tried 1 and 2 and neither worked https://snipboard.io/AZwzOW.jpg, the linked and inline CSS is still showing up.
Switched to the Twenty Twenty-Two theme and put the code in that functions.php file and still didn’t work.
Not sure @misulicus, it’s working correctly on both of my site now so it’s all good. Thanks for the help!
Thanks for the response Mihai, I think I figured it out. I use a menu plugin for mobile devices and the formatted cart total was working fine when I checked on my iPad/phone so I looked at the code I use for that plugin and it has
edd_cart_total( false )
in it://EDD Mini Cart Shortcode [eddminicart] For Mobile Menu Plugin function eddminicartfunc() { return '<div class="mobilemenucart"> <i class="fa fa-shopping-cart"></i> <span class="header-cart-total"> ' . edd_cart_total( false ) . ' </span> <span class="header-cart edd-cart-quantity">' . edd_get_cart_quantity() . '</span> </div>'; } add_shortcode( 'eddminicart', 'eddminicartfunc' );
So using edd_cart_total() shows the total price of the cart twice and edd_cart_total(false) shows it correctly. Any idea what changed? I have edd_cart_total() working fine on my live site with EDD 2.11.6.
Also needed to add, I have this code in a custom scripts file which may have something to do with it?
//EDD UPDATE CART TOTAL PRICE IN HEADER jQuery(document).ready(function($) { body = $( document.body ); var header_cart_total = $('.header-cart-total'); body.on('edd_cart_item_added',function(event, response){ header_cart_total.html(response.subtotal); }); body.on('edd_cart_item_removed',function(event, response){ header_cart_total.html (response.subtotal); }); });
@arnaudbroes ok, after updating, Disable Gutenberg was the first plugin I deactivated and then reactivated so I guess it was just one of those weird bugs.
@yallaman in Customizing > Web Page Design > General Design Options : Font, Colors, …
Not totally sure if you’re wanting to do this but you can disable the loading of Titillium by choosing Arial as the font, this will make Hueman not load ANY outside fonts. I manually load 2 Google fonts directly from Google so I don’t personally need Titillium or Hueman to load any fonts for me.
Still haven’t figured out a way to disable Font Awesome besides deleting the code in the main files which I don’t want to do because I’d have to update it manually every time the theme updates.
- This reply was modified 3 years, 9 months ago by Sho-Down.
Can you give us an option to DISABLE all fonts and Font Awesome Hueman loads? I manually load Google Fonts and use icomoon icons to load only the Font Awesome icons I use. The Hueman theme loading all this extra stuff I don’t need or use is slowing my site down. Please consider this.
Forum: Plugins
In reply to: [OnePress Social Locker] THIS (PAID) PLUGIN IS BROKEN, shame on youI was using the Starter theme so any theme that tries to load the actual buttons from Facebook, Twitter, etc. just keeps showing a rotating circle and never load. Switching to a theme that uses custom buttons like the Flat theme does work.
Forum: Plugins
In reply to: [OnePress Social Locker] THIS (PAID) PLUGIN IS BROKEN, shame on you@baksteendegeweldige ok that actually works when you switch to the FLAT theme, thank you for the temporary fix. You probably should post that on the Codecanyon website too so others can get the plugin working again until a proper fix is in place.