Title: coachtest's Replies | WordPress.org

---

# coachtest

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

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

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Adding Javascript to Template Parts](https://wordpress.org/support/topic/adding-javascript-to-template-parts/)
 *  Thread Starter [coachtest](https://wordpress.org/support/users/coachtest/)
 * (@coachtest)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/adding-javascript-to-template-parts/#post-16427477)
 * Thanks for the reply. This is sort of what I figured would be the case. For now
   I’ll just avoid template parts and try and stick with patterns where there is
   a bit more wiggle room.
 * I’ll also look into the filters you mentioned. Thanks again.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [how many media queries wil be perfect to target all devices?](https://wordpress.org/support/topic/how-many-media-queries-wil-be-perfect-to-target-all-devices/)
 *  [coachtest](https://wordpress.org/support/users/coachtest/)
 * (@coachtest)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/how-many-media-queries-wil-be-perfect-to-target-all-devices/#post-16427053)
 * I’m not going to claim this is right way; but, I find you should base your media
   queries on what the component your working on needs. If you have a complex testimonial
   block and it looks awkward, or crowded at 1200px I would define my breakpoint
   for that component at that size.
 * I would also look into whether the component your working on needs a media query.
   You can also use techniques like the one [found here](https://css-tricks.com/responsive-layouts-fewer-media-queries/).
 * If you do want a set a breakpoint I’ve found [breakpoints on Tailwind CSS ](https://tailwindcss.com/docs/responsive-design)
   to be useful.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Adding Javascript to Template Parts](https://wordpress.org/support/topic/adding-javascript-to-template-parts/)
 *  Thread Starter [coachtest](https://wordpress.org/support/users/coachtest/)
 * (@coachtest)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/adding-javascript-to-template-parts/#post-16426608)
 * Thanks for the reply. My javascript is already enqueued and is working in the
   browser it just breaks in the edit view.
 * From what you are saying it sounds like a library like alpine.js [https://alpinejs.
   dev/] which is primarily relies on inlining into the html is not going to work
   in the editor view. Is there no way to encapsulate the `x-data` or any other 
   code I would like the editor to ignore so it will show properly in both the front-
   end and edit view?
    -  This reply was modified 3 years, 3 months ago by [coachtest](https://wordpress.org/support/users/coachtest/).
    -  This reply was modified 3 years, 3 months ago by [coachtest](https://wordpress.org/support/users/coachtest/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Create Block Theme] Font loading not working.](https://wordpress.org/support/topic/font-loading-not-working/)
 *  [coachtest](https://wordpress.org/support/users/coachtest/)
 * (@coachtest)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/font-loading-not-working/#post-16348934)
 * Did you ever find a solution to your issue?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Gutenberg Blocks – Website Builder for the Block Editor] How do I change the background color only](https://wordpress.org/support/topic/how-do-i-change-the-background-color-only/)
 *  Thread Starter [coachtest](https://wordpress.org/support/users/coachtest/)
 * (@coachtest)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/how-do-i-change-the-background-color-only/#post-14990159)
 * Hello [@swetakumari](https://wordpress.org/support/users/swetakumari/)
 * There is nothing I can show in a screenshot. It’s just when I added a background
   color and inspected the code the background-color was not applied to the wrapper
   element, instead it was applied to a separate Div that was absolutely positioned
   to the wrapper element.
    -  This reply was modified 4 years, 7 months ago by [coachtest](https://wordpress.org/support/users/coachtest/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Block Builder - Lazy Blocks] Get user data](https://wordpress.org/support/topic/get-user-data-2/)
 *  Thread Starter [coachtest](https://wordpress.org/support/users/coachtest/)
 * (@coachtest)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/get-user-data-2/#post-14978040)
 * Thanks I’ll use that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Block Builder - Lazy Blocks] Get user data](https://wordpress.org/support/topic/get-user-data-2/)
 *  Thread Starter [coachtest](https://wordpress.org/support/users/coachtest/)
 * (@coachtest)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/get-user-data-2/#post-14976878)
 * Figured it out with php. using <?php echo do_shortcode(“[wpv-user field=’user_firstname’]”);?
   >
 * Is there a better way? or is it possible with handlebars?
    -  This reply was modified 4 years, 7 months ago by [coachtest](https://wordpress.org/support/users/coachtest/).
    -  This reply was modified 4 years, 7 months ago by [coachtest](https://wordpress.org/support/users/coachtest/).

Viewing 7 replies - 1 through 7 (of 7 total)