Title: johpg's Replies | WordPress.org

---

# johpg

  [  ](https://wordpress.org/support/users/johpg/)

 *   [Profile](https://wordpress.org/support/users/johpg/)
 *   [Topics Started](https://wordpress.org/support/users/johpg/topics/)
 *   [Replies Created](https://wordpress.org/support/users/johpg/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/johpg/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/johpg/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/johpg/engagements/)
 *   [Favorites](https://wordpress.org/support/users/johpg/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/users/johpg/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/johpg/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Gateway Based Fees and Discounts for WooCommerce] CART TOTALS – display gateway fee below shipping fee](https://wordpress.org/support/topic/cart-totals-display-gateway-fee-below-shipping-fee/)
 *  Thread Starter [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/cart-totals-display-gateway-fee-below-shipping-fee/#post-18725924)
 * Thanks for the reply.
   Will mark as resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XT Event Widget for Social Events] Shortcode not working](https://wordpress.org/support/topic/shortcode-not-working-464/)
 *  Thread Starter [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-not-working-464/#post-17588238)
 * Ticket has been created at [https://xylusthemes.com/support/](https://xylusthemes.com/support/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Plugin Info Card] Sort plugin query results by number of installs](https://wordpress.org/support/topic/sort-plugin-query-results-by-number-of-installs/)
 *  Thread Starter [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/sort-plugin-query-results-by-number-of-installs/#post-16351280)
 * Thank you for your quick action – much appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Plugin Info Card] Sort plugin query results by number of installs](https://wordpress.org/support/topic/sort-plugin-query-results-by-number-of-installs/)
 *  Thread Starter [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/sort-plugin-query-results-by-number-of-installs/#post-16347093)
 * _Are 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Two] Custom CSS](https://wordpress.org/support/topic/custom-css-283/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-css-283/#post-15339577)
 * [@domainsupport](https://wordpress.org/support/users/domainsupport/)
    I understand
   what you are saying re specificity.
 * `.entry-content` is the wrong class to target.
    The correct one is `wp-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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Two] Custom CSS](https://wordpress.org/support/topic/custom-css-283/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-css-283/#post-15336547)
 * [@domainsupport](https://wordpress.org/support/users/domainsupport/)
 * [https://messagexpress.com.au/fse/test-page/](https://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 4 years, 5 months ago by [johpg](https://wordpress.org/support/users/johpg/).
      Reason: add code tags
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Two] Custom CSS](https://wordpress.org/support/topic/custom-css-283/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-css-283/#post-15335494)
 * Oliver [@domainsupport](https://wordpress.org/support/users/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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Two] Custom CSS](https://wordpress.org/support/topic/custom-css-283/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-css-283/#post-15333092)
 * Just 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Two] Custom CSS](https://wordpress.org/support/topic/custom-css-283/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-css-283/#post-15333077)
 * [@sergeirichard](https://wordpress.org/support/users/sergeirichard/)
    YES – child
   theming does still work as before
 * [@danquigley](https://wordpress.org/support/users/danquigley/)
    child theme style.
   css is added to the head section of the page
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Two] Custom CSS](https://wordpress.org/support/topic/custom-css-283/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-css-283/#post-15317705)
 * [@andynick](https://wordpress.org/support/users/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://wordpress.org/plugins/custom-css-js/](https://wordpress.org/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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Two] Custom CSS](https://wordpress.org/support/topic/custom-css-283/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/custom-css-283/#post-15308810)
 * The 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Slash Edit: Admin Shortcuts to Edit Posts and Pages Faster] Change edit url to “/e” ?](https://wordpress.org/support/topic/change-edit-url-to-e/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/change-edit-url-to-e/#post-15101535)
 * Answer is in the last FAQ question:
 * **English is not my first language. Can I change the “/edit” into something else?**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager] Disable from specific page](https://wordpress.org/support/topic/disable-from-specific-page/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/disable-from-specific-page/#post-15020607)
 * 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/](https://udoxmedia.com/course-creation-roadmap/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] How to add gtag for Google Ads?](https://wordpress.org/support/topic/how-to-add-gtag-for-google-ads/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/how-to-add-gtag-for-google-ads/#post-13627830)
 * [@jamesosborne](https://wordpress.org/support/users/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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] How to add gtag for Google Ads?](https://wordpress.org/support/topic/how-to-add-gtag-for-google-ads/)
 *  [johpg](https://wordpress.org/support/users/johpg/)
 * (@johpg)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/how-to-add-gtag-for-google-ads/#post-13622871)
 * 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?

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/users/johpg/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/johpg/replies/page/2/?output_format=md)