Skip to content

Instantly share code, notes, and snippets.

View gabydevdev's full-sized avatar

Gabriela Carral gabydevdev

View GitHub Profile
@gabydevdev
gabydevdev / functions.php
Created August 1, 2025 20:13
Disable Gutenberg editor for post types.
<?php
/**
* Disable Gutenberg editor for post types.
*
* @param bool $use_block_editor Whether to use the block editor.
* @param string $post_type The post type being edited.
* @return bool
*/
function disable_gutenberg( $use_block_editor, $post_type ) {
@gabydevdev
gabydevdev / functions.php
Last active August 1, 2025 20:12
Disable block editor for widgets and enable classic widget editor.
<?php
/**
* Disable block editor for widgets and enable classic widget editor.
*
* @since 1.0.0
* @return void
*/
function disable_block_editor_for_widgets() {
remove_theme_support( 'widgets-block-editor' );
@gabydevdev
gabydevdev / commit-message-guidelines.md
Created June 13, 2025 15:18 — forked from JamesIves/commit-message-guidelines.md
🤖 Copilot commit messages instructions for VS Code

Add the following data to settings.json within VSCode to auto-generate commit messages with Copilot using the Conventional Commit format. This is based off of this example, however includes more explicit instructions for all commit prefixes (such as docs, refactor, etc).

  "github.copilot.chat.commitMessageGeneration.instructions": [
    {
      "text": "Generate commit messages in Conventional Commits format with gitmoji. Follow this exact structure:\n\n```\n<type>[optional scope]: <gitmoji> <description>\n\n[optional body]\n```\n\nExamples:\n- `feat(auth): :sparkles: add new login validation`\n- `fix(api): :bug: resolve user data fetch timeout`\n- `docs: :memo: update README installation steps`\n- `docs: :bookmark: add JSDoc comments to media component`\n- `style: :art: format code according to linting rules`\n- `refactor: :recycle: restructure video platform detection logic`\n\nTypes must be one of:\n- `feat`: A new feature\n-
@gabydevdev
gabydevdev / commit-message-guidelines.md
Created June 13, 2025 15:18
🤖 Copilot commit messages instructions for VS Code

Paste it to settings.json:

"github.copilot.chat.commitMessageGeneration.instructions": [
  {
    "text": "Follow the Conventional Commits format strictly for commit messages. Use the structure below:\n\n```\n<type>[optional scope]: <gitmoji> <description>\n\n[optional body]\n```\n\nGuidelines:\n\n1. **Type and Scope**: Choose an appropriate type (e.g., `feat`, `fix`) and optional scope to describe the affected module or feature.\n\n2. **Gitmoji**: Include a relevant `gitmoji` that best represents the nature of the change.\n\n3. **Description**: Write a concise, informative description in the header; use backticks if referencing code or specific terms.\n\n4. **Body**: For additional details, use a well-structured body section:\n   - Use bullet points (`*`) for clarity.\n   - Clearly describe the motivation, context, or technical details behind the change, if applicable.\n\nCommit messages should be clear, informative, and professional, aiding readability and project tracking."
  }
]
@gabydevdev
gabydevdev / settings.json
Last active June 13, 2025 15:46
Commit Message Structure Configuration
"github.copilot.chat.commitMessageGeneration.instructions": [
{
"text": "Follow the modified Conventional Commits format strictly for commit messages. Use the structure below:\n\n```\n[type] (optional scope) gitmoji description\n\n[optional body]\n```\n\nGuidelines:\n\n1. **Type and Scope**: Choose an appropriate type (e.g., `feat`, `fix`) enclosed in square brackets [type] and optional scope in parentheses (scope).\n\n2. **Gitmoji**: Include a relevant `gitmoji` that best represents the nature of the change.\n\n3. **Description**: Write a concise, informative description in the header; use backticks if referencing code or specific terms.\n\n4. **Body**: For additional details, use a well-structured body section:\n - Use bullet points (`*`) for clarity.\n - Clearly describe the motivation, context, or technical details behind the change, if applicable.\n\nCommit messages should be clear, informative, and professional, aiding readability and project tracking."
}
]
@gabydevdev
gabydevdev / .gitignore
Created April 3, 2024 18:38 — forked from salcode/.gitignore
Please see https://salferrarello.com/wordpress-gitignore/ for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
@gabydevdev
gabydevdev / qi-main.css
Created November 7, 2023 01:06
qi-main.css
/* ==========================================================================
Include variables and mixins
========================================================================== */
/* ==========================================================================
Typography variables
========================================================================== */
/* ==========================================================================
Box variables
========================================================================== */
/* ==========================================================================
@gabydevdev
gabydevdev / php.ini
Created April 6, 2023 19:38
Recommended Server Configuration for WordPress environment
upload_max_filesize = 512M
post_max_size = 512M
memory_limit = 516M
max_execution_time = 600
max_input_vars = 5000
max_input_time = 400
@gabydevdev
gabydevdev / sassas.md
Created May 27, 2022 20:31 — forked from AdamMarsden/sassas.md
Sass Architecture Structure

Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
@gabydevdev
gabydevdev / acf-get-field.sublime-snippet
Created July 22, 2021 20:55 — forked from nashvillegeek/acf-get-field.sublime-snippet
Sublime Text 2 snippet for Advanced Custom Fields 'get field'
<snippet>
<content><![CDATA[
\$${1:varname} = get_field('${2:field_name}', '${3:\$post_id}');
if (\$${1:varname} != '') {
echo \$${1:varname};
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>acfgetfield</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->