- This topic has 27 replies, 4 voices, and was last updated 5 years, 9 months ago by
David.
-
AuthorPosts
-
July 3, 2020 at 7:19 am #1350542
nutt
Let forget about social button
Can you help me with separator line and the date below like this
[img]https://sv1.picz.in.th/images/2020/07/03/5RKoVI.jpg[/img]July 3, 2020 at 7:50 am #1350708nutt
The code you sent previously, I insert to the hook and it shows like this
[img]http://image.free.in.th/v/2013/im/200703025042.jpg[/img]
July 3, 2020 at 7:51 am #1350709David
StaffCustomer SupportOk lets see if we can get the Shares moved first.
Add just this function:function jptweak_remove_share() { remove_filter( 'the_content', 'sharing_display', 19 ); remove_filter( 'the_excerpt', 'sharing_display', 19 ); if ( class_exists( 'Jetpack_Likes' ) ) { remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 ); } } add_action( 'loop_start', 'jptweak_remove_share' );And make sure that removes the Share Icons first.
Let me know
July 3, 2020 at 7:55 am #1350714nutt
Done, what’s next?
Thank you so much
July 3, 2020 at 8:03 am #1350720David
StaffCustomer SupportNow add this to your
after_contenthook element and check execute PHP:<?php if ( function_exists( 'sharing_display' ) ) { sharing_display( '', true ); } ?>July 3, 2020 at 8:05 am #1350725nutt
Ok. Done
July 3, 2020 at 8:07 am #1350729David
StaffCustomer Supporthmmm… have you checked Execute PHP in the Hook ?
If so – are there any warnings in the Element?July 3, 2020 at 8:13 am #1350731nutt
No warning, the social shares just came back as you see -> https://nuttblog.com
as I say.. all I want is to put the date below the line like this … please forget about social button for seconds, I can uninstall the plugin for that.
Please help me solve the date problem only
[img]https://sv1.picz.in.th/images/2020/07/03/5RUz8D.jpg[/img]
July 3, 2020 at 8:23 am #1350745David
StaffCustomer SupportI can see the Date is displayed below the title.
Adding this PHP function should move it below the content:July 3, 2020 at 8:25 am #1350750nutt
Those codes made the date disappeared both positions
July 3, 2020 at 8:36 am #1350757David
StaffCustomer SupportWhat happens if you remove this piece of the code?
add_filter( 'generate_header_entry_meta_items', function() { return ''; } );July 3, 2020 at 8:39 am #1350761nutt
The date came back to the default position.
Hey, David …That’s all right, I think I better give up on this.
I never thought this can be so complicated. I am sorry for taking up so much of your time.
I am really appreciated for your kind help. Thank you very much… _/|\_
July 3, 2020 at 8:45 am #1350771David
StaffCustomer SupportReally sorry – it shouldn’t be this difficult.
There must be something different on your site that is effecting the post meta display and how PHP is executed. -
AuthorPosts
- You must be logged in to reply to this topic.