johpg
Forum Replies Created
-
Forum: Plugins
In reply to: [XT Event Widget for Social Events] Shortcode not workingTicket has been created at https://xylusthemes.com/support/
Forum: Plugins
In reply to: [WP Plugin Info Card] Sort plugin query results by number of installsThank you for your quick action – much appreciated.
Forum: Plugins
In reply to: [WP Plugin Info Card] Sort plugin query results by number of installsAre you asking that whatever the result of the query, you’d like to be able to further sort them by install?
CORRECT
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Custom CSS@domainsupport
I understand what you are saying re specificity..entry-content
is the wrong class to target.
The correct one iswp-block-group
So if you want to globally override the H1 font-family, either of these will work in the Customizer:
.wp-block-group h1 { font-family: Arial; }
h1 { font-family: Arial !important; }
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Custom CSShttps://messagexpress.com.au/fse/test-page/
That test page is showing the H1 element with a font-family of “Source Serif Pro”.
If I want to change the font-family for the H1 element site-wide (i.e. globally) to Arial via customize.php, I have to add this:
h1 { font-family: Arial !important; }
- This reply was modified 2 years, 9 months ago by johpg. Reason: add code tags
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Custom CSSOliver @domainsupport
For my example of changing the H1 element via the Customizer, using
body h1
doesn’t work.It only works when I add
!important
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Custom CSSJust a clarification regarding where I have referenced styles being added in the FOOTER of the page.
By FOOTER, I actually mean the BOTTOM, or END of the page.
If you view the page source of a page using the Twenty Twenty-Two theme and scroll to the bottom, you will see a </footer> tag.
AFTER this tag, and before the </body> tag, you will see multiple <style> and <script> sections.
This is where the global style settings for the theme are written.
Because these are right at the bottom of the page, they override anything above them.So to override a global style setting via the Customizer, you have to add “!important” to the style declaration.
Same with styles added via a Child theme’s style.css file.
Sorry for any confusion and I hope this makes it clear.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Custom CSS@sergeirichard
YES – child theming does still work as before@danquigley
child theme style.css is added to the head section of the pageForum: Themes and Templates
In reply to: [Twenty Twenty-Two] Custom CSS@andynick
Correct, because the footer styles are loaded later in the document.
So a H1 declaration added via the Customizer will get overridden.
Therefore have to add “!important” to stop this happening.Another option is to use this plugin:
https://www.ads-software.com/plugins/custom-css-js/This plugin allows you to select whether your CSS is added to the header or footer.
If you select “footer” your styles will be added AFTER the theme styles, so will NOT get overridden.Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Custom CSSThe Customizer adds the Additional CSS styles to the <head> section, while the global styles for the theme are loaded in the <footer>.
Therefore to override the style of the H1 element, for example, you will have to add “!important” to your style declarations.
Forum: Plugins
In reply to: [Slash Edit] Change edit url to “/e” ?Answer is in the last FAQ question:
English is not my first language. Can I change the “/edit” into something else?
Try adding this code to your functions.php file, or if you don’t want to use functions.php, add it to your site via the Code Snippets plugin:
add_filter( 'disable_ihaf_footer', 'fn_ihaf_footer_disable' ); function fn_ihaf_footer_disable() { if( is_single('2326') ) { return true; } }
“2326” is the postID for your page https://udoxmedia.com/course-creation-roadmap/
@jamesosborne Thanks for the quick reply.
The links you provided were helpful.Here’s what I’ve done:
1. Turned OFF the option for Site Kit to add the Analytics code to the website.
2. Edited the gtag code to include both Analytics and Ads:
<!-- Global site tag (gtag.js) - Google Analytics: XXXXXXXXX-1 Google Ads: XXXXXXXXX--> <script type='text/javascript' src='https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-1' id='google_gtagjs-js' async></script> <script type='text/javascript' id='google_gtagjs-js-after'> window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('set', 'developer_id.dZTNiMT', true); gtag('config', 'UA-XXXXXXXXX-1', {"anonymize_ip":true} ); gtag('config', 'AW-XXXXXXXXX'); </script>
3. Added the code from step 2 to my site using the Insert Headers & Footers plugin.
I’m fairly sure this is correct, so as far as I’m concerned my issue is resolved.
Google Tag Manager is too complicated for me.
I have Site Kit installed with Analytics connected.
I have also manually added the Google Ads conversion code, so what I have is this:<script type='text/javascript' src='https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-1' id='google_gtagjs-js' async></script> <script type='text/javascript' id='google_gtagjs-js-after'> window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('set', 'developer_id.dZTNiMT', true); gtag('config', 'UA-XXXXXXXXX-1', {"anonymize_ip":true} ); </script>
and then a bit further down the page I have this:
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXX"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-XXXXXXXXX'); </script>
Does it matter that googletagmanager is duplicated?
Forum: Plugins
In reply to: [Advanced Editor Tools] Table bug with Edge – plugin needs update to 4.7.13Nope, dev version 4.7.13, not working in Edge (seems to work in Chrome though).
In Edge if I click on text in the top left cell the cursor appears in the bottom right (last) cell.
If I then type something the whole table is deleted and replaced by what I type.
- This reply was modified 6 years, 6 months ago by johpg.