waywrdsmeansgns
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GivingPress Lite] Changing ‘last updated’ to original post dateSOLUTION!
This appears to be a solution that retains the author name and the original post date. Seems to work in all the files.
<p class="align-left"><i class="fa fa-clock-o"></i> <?php if ( get_the_modified_time() != get_the_time() ) { ?> <?php esc_html_e( 'Posted on', 'givingpress-lite' ); ?> <?php the_time( esc_html__( 'F j, Y', 'givingpress-lite' ) ); ?> <?php } else { ?> <?php esc_html_e( 'Posted on', 'givingpress-lite' ); ?> <?php the_time( esc_html__( 'F j, Y', 'givingpress-lite' ) ); ?> <?php } ?> <?php esc_html_e( 'by', 'givingpress-lite' ); ?> <?php esc_url( the_author_posts_link() ); ?> </p>
- This reply was modified 4 years, 8 months ago by waywrdsmeansgns.
Forum: Fixing WordPress
In reply to: Post dates are ‘last updated’ – switch to original post date?Okay, I more or less figured out the solution, which I posted on the Givingpress Lite forum. I successfully changed the date, but lost the author name in the process. But I’ll post this for now:
https://wordpress.org/support/topic/changing-last-updated-to-original-post-date/#post-11820548
Forum: Themes and Templates
In reply to: [GivingPress Lite] Changing ‘last updated’ to original post dateSimilar solution for Archive display, and this DOES retain the author name. But the original code is a bit different. In the loop-archive.php file:
Find
<?php if ( get_the_modified_time() != get_the_time() ) { ?> <?php esc_html_e( 'Updated on', 'givingpress-lite' ); ?> <?php the_modified_date( esc_html__( 'F j, Y', 'givingpress-lite' ) ); ?>
and replace with
<?php if ( get_the_modified_time() != get_the_time() ) { ?> <?php esc_html_e( 'Posted on', 'givingpress-lite' ); ?> <?php the_time( esc_html__( 'F j, Y', 'givingpress-lite' ) ); ?>
- This reply was modified 4 years, 8 months ago by waywrdsmeansgns.
Forum: Fixing WordPress
In reply to: Post dates are ‘last updated’ – switch to original post date?Hi @sterndata thanks for your reply. I tried here because the theme is no longer being updated or maintained.
I am running a child theme – I found a way to remove the text that says “Last updated” but it still displays the updated date, not original publication date – if anyone can suggest how to modify this, it would be much appreciated!
In additional CSS:
.post-date .fa-clock-o, .post-date .meta-prep-author { display: none; }
- This reply was modified 4 years, 8 months ago by waywrdsmeansgns.
Forum: Fixing WordPress
In reply to: Using Burmese fonts in WordPressHi @rachna90 thanks for sharing this. i’m not sure it helps though – my concern isn’t the language, it’s specifically how the Myanmar fonts render. I am using Polylang currently
If I may ask, why did you switch back to soft opt-in?
Ah, well thank you.
That method hasn’t been working for me, unfortunately. Possibly because the script in the script blocking field changes from<script async src=
to<a href=
when I save the settings…Thanks @brianspurling
You pasted just the script, straight from how GA gives it to you, yeah?
Would you mind sending me a link to your website so I can take a look?Thanks @brianspurling
The post you link is great for explaining the concept, but doesn’t help me execute it.
At this point, I’m hoping to hear from people who have successfully blocked the Google Analytics script via the plugin’s script blocking field. Or else people who have an alternate method of blocking the script, i.e. via header.php file.Yeah, reloading is enabled and right – once I accept, I get the cookie_notice_accepted with value as true but no ga cookies!
Well, thank you so much for trying – i really appreciate it!!
One thing I haven’t tried is disabling other plugins, to see if there is some issue cross-plugins.. or maybe someone else has another solution, fingers crossed!
well that won’t do, will it!
But alas, it’s still not working for me – the GA cookies aren’t loading when I click “accept”.
Here is the final 23 lines of my header.php file – including the extra few at the top to make sure there is no competing unclosed tags, etc
<link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link rel="shortcut icon" type="image/x-icon" href="<?php echo esc_url($qode_options_proya['favicon_image']); ?>"> <link rel="apple-touch-icon" href="<?php echo esc_url($qode_options_proya['favicon_image']); ?>"/> <?php wp_head(); ?> <?php if ( function_exists(‘cn_cookies_accepted’) && cn_cookies_accepted() ) { ?> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxx"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-xxxxxxx'); </script> <?php } ?> </head>
- This reply was modified 5 years, 9 months ago by waywrdsmeansgns.
@neroavorio after making the changes to the header.php file, I “purged all caches” via the W3 Total plugin. Then I cleared browsing data from all time on chrome, including “cookies and other site data” – I assume that’s what you mean? after that, I revisit the page and check the cookies in DevTools > Applications > Cookies.
Having just done this again, now I am literally seeing the message
if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { }
at the top of the site.It’s a great idea, and I’d certainly contribute any information I have – which is just a handful popular plugins. I’m not sure how much, if any, I could commit to the admin or publicity work but if you have the time and energy it would be a great thing!
One more column (or clarification in the A column) would be to identify scripts associated with non-plugins as well. For instance, if someone is using the CrazyEgg script in their header.php – while not technically a plugin, the users will receive cookies.
And one more (minor) suggestion, that the C column be “uses cookies?”
In the meantime, I’m still trying to figure out how to use this plugin correctly…! maybe you have insight Josiah? https://wordpress.org/support/topic/has-anyone-successfully-blocked-google-analytics-script/#post-10487554
- This reply was modified 5 years, 9 months ago by waywrdsmeansgns.
thanks @neroavorio
This doesn’t seem to work for me either – now the GA cookies are there regardless of whether I “accept” or “reject” or do nothing. Maybe I have entered the code incorrectly? here’s what’s in my header.php, just before the
</head>
tag :if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { <!-- Global Site Tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=xxxxxxxx"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)}; gtag('js', new Date()); gtag('config', 'UA-xxxxxxx'); </script> }
Do you have anything in the “script blocking” field in the Cookie Notice setting/configuration page?
- This reply was modified 5 years, 9 months ago by waywrdsmeansgns.
Josiah, do you have thoughts about how to spread the word on this doc? and would you make it open, so anyone can edit, or do you imagine there being a few admins who oversee and accept submissions?