Title: codejp3's Replies - page 27 | WordPress.org

---

# codejp3

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 391 through 405 (of 407 total)

[←](https://wordpress.org/support/users/codejp3/replies/page/26/?output_format=md)
[1](https://wordpress.org/support/users/codejp3/replies/?output_format=md) [2](https://wordpress.org/support/users/codejp3/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codejp3/replies/page/3/?output_format=md)…
[26](https://wordpress.org/support/users/codejp3/replies/page/26/?output_format=md)
27 [28](https://wordpress.org/support/users/codejp3/replies/page/28/?output_format=md)
[→](https://wordpress.org/support/users/codejp3/replies/page/28/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbp style pack] Moderation tools issue](https://wordpress.org/support/topic/moderation-tools-issue/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/moderation-tools-issue/#post-16302116)
 * replying to mark as resolved…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbp style pack] classes bsp-one-half / bsp-one-third missing](https://wordpress.org/support/topic/classes-bsp-one-half-bsp-one-third-missing/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/classes-bsp-one-half-bsp-one-third-missing/#post-16289209)
 * Now I noticed that when viewing the forum index that has the “mark as read” button
   to the left and search form to the right, the “mark as read” button has 7px cut
   off from the top.
 * Fixed one problem, but caused another. 🙁
 * To isolate just the -7px offset on single forum pages, but display as normal 
   on the forum index page, I got a little more specific with the targeted CSS selector:
 *     ```
       /* only when the "mark as read" button is used in-line with other buttons */
       div.bsp-center > form > input.bsp_button1 {
       	margin-top: -7px;	
       }
       ```
   
 * The button displays properly by itself, and perfectly in-line with all other 
   buttons everywhere it’s used.
 * Problem(s) solved…..but that makes it even less user-friendly for personal customization.
   Hmmm, haven’t come up with a solid solution for this yet. I’ll keep thinking 
   about it and get back to you if I come up with something.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbp style pack] classes bsp-one-half / bsp-one-third missing](https://wordpress.org/support/topic/classes-bsp-one-half-bsp-one-third-missing/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/classes-bsp-one-half-bsp-one-third-missing/#post-16288653)
 * One more follow-up. The “Mark All Topics As Read” button is slightly different
   than the others. Probably because it’s a built-in form.
 * I played around 1, 2, 3, and 4 buttons, and with the order for the buttons, and
   that’s when it becomes obvious. “Mark All Topics As Read” is slightly offset 
   vertically from the others.
 * Compensating for the padding set in the .bsp_button1 class, an equal negative
   offset for just the “Mark All Topics As Read” form input button makes them all
   align perfectly:
 *     ```
       input.bsp_button1 {
       	margin-top: -7px;	
       }
       ```
   
 * I **THINK** that’s it related to the top buttons and alignments. They’re all 
   aligned perfectly, regardless of how many buttons and which order.
 * Problem is, this isn’t very customizable for end-users. If someone changes the
   top or bottom padding size of .bsp_button1 (or their own custom class), then 
   the input button for “Mark All Topics As Read” has to be handled separately with
   an equal negative top margin comparable to the padding of the rest. Just something
   to think about.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbp style pack] classes bsp-one-half / bsp-one-third missing](https://wordpress.org/support/topic/classes-bsp-one-half-bsp-one-third-missing/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/classes-bsp-one-half-bsp-one-third-missing/#post-16288287)
 * Oh, I’ll also add, that I made a few CSS changes. Couldn’t get them to look aligned
   properly with unequal width % and margin-right.
 * Instead I set
 *     ```
       /* bsp-one-half */
       margin-right: 0;
       width: 50%;
   
       /* bsp-one-third */
       margin-right: 0;
       width: 33.33%;
       ```
   
 * Looks proper on my end now.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbp style pack] classes bsp-one-half / bsp-one-third missing](https://wordpress.org/support/topic/classes-bsp-one-half-bsp-one-third-missing/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/classes-bsp-one-half-bsp-one-third-missing/#post-16288262)
 * replying to mark as resolved…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbp style pack] Reply Button Missing Closing Div](https://wordpress.org/support/topic/reply-button-missing-closing-div/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/reply-button-missing-closing-div/#post-16288206)
 * replying to mark as resolved…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Multisite SuperList] react-dom: Target container is not a DOM element.](https://wordpress.org/support/topic/react-dom-target-container-is-not-a-dom-element/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/react-dom-target-container-is-not-a-dom-element/#post-16287634)
 * Just replying to mark as resolved…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Armour - Honeypot Anti Spam] Empty array warnings and notices on first-time stats save](https://wordpress.org/support/topic/empty-array-warnings-and-notices-on-first-time-stats-save/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/empty-array-warnings-and-notices-on-first-time-stats-save/#post-16285897)
 * replying to mark as resolved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Armour - Honeypot Anti Spam] Escape apostrophe problem in message field](https://wordpress.org/support/topic/escape-apostrophe-problem-in-message-field/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/escape-apostrophe-problem-in-message-field/#post-16285812)
 * replying to mark as resolved….
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Armour - Honeypot Anti Spam] Trying to access array offset on value of type null](https://wordpress.org/support/topic/trying-to-access-array-offset-on-value-of-type-null-32/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-on-value-of-type-null-32/#post-16285591)
 * Just replying so that I can mark the topic as resolved…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Multisite SuperList] REST API route definition missing the required argument](https://wordpress.org/support/topic/rest-api-route-definition-missing-the-required-argument/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/rest-api-route-definition-missing-the-required-argument/#post-16285037)
 * Just replying so I can mark as resolved..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Disable the TinyMCE Code Snippets Button/Dropdown](https://wordpress.org/support/topic/disable-the-tinymce-code-snippets-button-dropdown/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/disable-the-tinymce-code-snippets-button-dropdown/#post-16284880)
 * Thanks for the reply and link to the codesnippets cloud!
 * Between our posts, there’s 3 variations of disabling the TinyMCE buttons:
    1. Only in bbPress
    2. Site-wide
    3. Only in admin panel
 * I could think of plenty more conditions to enable/disable it as well. No way 
   to cover every scenario and justifies NEVER making it a built-in dedicated plugin
   setting and keeping it an optional code snippet.
 * Thanks again!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbp style pack] Uncaught ReferenceError: jQuery is not defined](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-38/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-38/#post-16281713)
 * Just replying so that I can mark this as resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Disable the TinyMCE Code Snippets Button/Dropdown](https://wordpress.org/support/topic/disable-the-tinymce-code-snippets-button-dropdown/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/disable-the-tinymce-code-snippets-button-dropdown/#post-16279913)
 * Well, answered my own question.
 * Made this little snippet, and even kept BBPress context so it’s only disabled
   in the front end forum.
 *     ```
       add_filter( 'mce_buttons', 'codejp3_remove_code_snippets_button', 99 );
       function codejp3_remove_code_snippets_button( $buttons ) {
       	if ( is_bbpress() ) {
       		$buttons = array_diff($buttons, ["code_snippets"]);
       		return $buttons;
       	}
       }
       ```
   
 * I think adding a setting for this within the plugin is overkill, especially if
   you factor in context (like only on BBPress)…. BUT perhaps something like this
   should be a default sample snippet that ships with Code Snippets? Something like:
 *     ```
       add_filter( 'mce_buttons', function ( $buttons ) {
       	$buttons = array_diff($buttons, ["code_snippets"]);
       	return $buttons;
       });
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields: Typography Field] Enqueue Fonts Styles in Custom Function](https://wordpress.org/support/topic/enqueue-fonts-styles-in-custom-function/)
 *  Thread Starter [codejp3](https://wordpress.org/support/users/codejp3/)
 * (@codejp3)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/enqueue-fonts-styles-in-custom-function/#post-16066656)
 * Looking at the code within the plugin, I don’t think what I want to achieve is
   possible as-is.
 * I’ll be modifying it to include an option to “save/serve Google font files locally”
   instead of always/only linking to Google for them, and then to include the URL(
   if “served remotely” option selected) or local file path (if “saved/served locally”
   option selected) as part of the values array returned by the shortcode and get_
   and the_ functions.
 * THEN I can grab all the info I need to be able to include the proper CSS code
   to make font styling set with this plugin within my PDF generation.
 * It’s not just for my purposes. I can see a handful of scenarios where some people
   would want resources used being saved and served locally, and where having either
   the URL or file path to those resources being helpful when custom coding non-
   standard, non-wordpressy things.
 * I’ll submit another pull request on GitHub once I’m done.
    -  This reply was modified 3 years, 8 months ago by [codejp3](https://wordpress.org/support/users/codejp3/).
      Reason: few typos

Viewing 15 replies - 391 through 405 (of 407 total)

[←](https://wordpress.org/support/users/codejp3/replies/page/26/?output_format=md)
[1](https://wordpress.org/support/users/codejp3/replies/?output_format=md) [2](https://wordpress.org/support/users/codejp3/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codejp3/replies/page/3/?output_format=md)…
[26](https://wordpress.org/support/users/codejp3/replies/page/26/?output_format=md)
27 [28](https://wordpress.org/support/users/codejp3/replies/page/28/?output_format=md)
[→](https://wordpress.org/support/users/codejp3/replies/page/28/?output_format=md)