{"id":14955040,"url":"https://github.com/wpgenius/astra-child-theme","last_synced_at":"2026-02-12T10:03:59.171Z","repository":{"id":65902405,"uuid":"601144610","full_name":"wpgenius/Astra-Child-Theme","owner":"wpgenius","description":"Basic template of child theme for Astra","archived":false,"fork":false,"pushed_at":"2025-01-22T12:36:38.000Z","size":596,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-22T13:37:16.051Z","etag":null,"topics":["astra","starter-template","wordpress","wordpress-child-theme","wordpress-development","wordpress-site","wordpress-theme","wordpress-theme-boilerplate","wordpress-theme-framework","wordpress-theme-template"],"latest_commit_sha":null,"homepage":"https://wpgenius.in","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpgenius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-13T13:14:21.000Z","updated_at":"2025-01-22T12:36:42.000Z","dependencies_parsed_at":"2024-03-23T12:19:48.159Z","dependency_job_id":"7fa041f6-684b-4a48-b22e-1b7917ad6fb0","html_url":"https://github.com/wpgenius/Astra-Child-Theme","commit_stats":{"total_commits":165,"total_committers":5,"mean_commits":33.0,"dds":"0.49696969696969695","last_synced_commit":"c68b7bf05667ba273600b52db07e6648a596d9a7"},"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpgenius%2FAstra-Child-Theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpgenius%2FAstra-Child-Theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpgenius%2FAstra-Child-Theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpgenius%2FAstra-Child-Theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpgenius","download_url":"https://codeload.github.com/wpgenius/Astra-Child-Theme/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237932056,"owners_count":19389560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astra","starter-template","wordpress","wordpress-child-theme","wordpress-development","wordpress-site","wordpress-theme","wordpress-theme-boilerplate","wordpress-theme-framework","wordpress-theme-template"],"created_at":"2024-09-24T13:10:26.022Z","updated_at":"2025-10-24T07:30:42.790Z","avatar_url":"https://github.com/wpgenius.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Astra Child Theme\nA starter child theme for Astra Child Theme.\n\nThis child theme is based on object oriented. In this child theme we created usefull files to develop a new website from scratch.\n\n### Basic Folder structure\n\n    ├── ...\n    ├── assets\n    │   ├── css\n    │     ├── style.css                             # You can add extra style.\n    │   ├── images                                  # You can upload images.\n    │     ├── wpgenius_logo.png\n    │   ├── js\n    │     ├── custom.js                             # You can add extra javascript.\n    ├── includes\n    │   ├──Modules\n    │     ├── uae-modules.php                       # Activate UAE modules.\n    │   ├──post-types\n    │     ├── testimonial.php                       # Create a new post type.\n    │   ├── widgets\n    │     ├── widget-testimonial.php                # Create a new widget.\n    │   ├── widgets-elementor\n    │     ├── widget-testimonial.php                # Create a new elementor widget.\n    │   ├── admin-actions.php                       # Add admin related actions.\n    │   ├── ajax-actions.php                        # Add ajax related actions.\n    │   ├── cleanup-action.php                      # Add wordpress or other cleaning related actions.\n    │   ├── security-actions.php                    # Add security related action.\n    │   ├── seo-actions.php                         # Add seo related action.\n    │   ├── theme-actions.php                       # Add theme related action.\n    │   ├── theme-functions.php                     # Add theme functions.\n    │   ├── theme-settings.php                      # Add theme settings.\n    │   ├── user-actions.php                        # Add user related action.\n    │   ├── widget-elementor.php                    # Add or remove elementor files from here\n    │   ├── woo-actions.php                         # Add woocommerce related action.\n    ├── funtion.php                                 # You can include new files here.\n    ├── screenshot.png                              # Show screenshot image to the child theme.\n    ├── style.css                                   # Add custom css.\n    │   └── ...\n    └── ...\n\n\n#### Steps to register a new post type.\nCreate a 'post-type name'.php file into the includes/post-type/.\nyou can copy the code from testimonial.php.\nafter that copy your post type name or file name and add it into the $post_types array located in theme-action.php\n\n```\n\t\tprivate $post_types = array(\n\t\t\t'testimonial',\n\t\t);\n```\n\n#### Steps to register a new Elementor widget.\nCreate a new file as widget-'widget name'.php into the includes/widgets-elementor/.\nYou can copy basic structure of elementor widget code from includes/widgets-elementor/widget-testimonial.php\nafter that add file path in register_widget function located in widgets-elementor.php\n\n```\npublic function register_widgets() {\n\t\t// register widget here\n\t\trequire_once __DIR__ . '/widgets-elementor/widget-testimonial.php';\n\t\t\\Elementor\\Plugin::instance()-\u003ewidgets_manager-\u003eregister_widget_type( new \\Elementor\\WPG_Elementor_Testimonial_Widget() );\n\t}\n ```\n\n#### Use of admin-actions.php\n\nIn this file you can add admin related actions.\n\n* Disable Gutenberg on the back end.\n* Disable Gutenberg for widgets.\n* Allow SVG uploads.\n* Remove comments support for all post types. Remove comment menu, widget from admin.\n* Add duplicate button to post/page list of actions.\n* White label admin footer.\n* Lowercase Filenames for Uploads.\n* Redirect any user trying to access comments page.\n* Remove comments metabox from dashboard.\n* Disable support for comments and trackbacks in post types.\n* Remove comments page in menu.\n* Remove comments links from admin bar.\n* Add duplication post link in action links to the admin.\n* Handle the custom action when clicking the button we added above.\n\n#### ajax-action.php\n\nIn this file you can add Ajax related actions.\n\n#### cleanup-action.php\n\nThis file use for to clean wordpress dashboard or other this as follows.\n* Remove unwanted JS \u0026 CSS from front end.\n   * Remove Gutenberg Block Library CSS from loading on the frontend.\n* Remove all dashboard widgets from admin panel.\n* Remove Slider Revolution Meta Generator Tag.\n* Disable the emojis in WordPress.\n* Disable all embeds in WordPress.\n   * Remove the REST API endpoint.\n   * Turn off oEmbed auto discovery.\n   * Don't filter oEmbed results.\n   * Remove oEmbed discovery links.\n   * Remove all embeds rewrite rules.\n   * Remove filter of the oEmbed result before any HTTP requests are made.\n* Remove oEmbed-specific JavaScript from the front-end and back-end.\n* Disable RSS FEEDS.\n* Clean WordPress admin.\n\n#### security-action.php\n\nThis file use for wordpress security actions.\n\n* Remove WordPress Meta Generator Tag.\n* Disable XMLRPC.\n* Remove link to the Really Simple Discovery service endpoint.\n* Disable wlwmanifest link.\n* Close comments on the front-end and Hide existing comments.\n* Disable Comment Form Website URL.\n* Disable pings on the front end.\n* Disable core auto-updates.\n* Disable auto-updates for plugins.\n* Disable auto-updates for themes.\n* Disable auto-update emails for core.\n* Disable auto-update emails for plugins.\n* Disable auto-update emails for themes.\n\n#### seo-actions.php\n\nThis file use for SEO related actions.\n\n* Disable Attachment Pages.\n* Disable Attachment Pages.\n* Add filter to remove Query Strings From Static Files.\n* Split Query Strings From urls.\n\n#### theme-action.php\n\nThis file use for Theme related actions\n\n* Enqueue stylesheet file on front end.\n   * We will not use default stylesheet file. Only write CSS to style.css file under assets/css folder.\n* Includes post type files. Check if file exist or not and then include it.\n* Includes widget files. Check if file exist or not and then include it.\n* Register elementor widgets by creating instance of class WPGenius_Elementor_Widgets.\n* Register elementor widgets by creating instance of class WPGenius_Elementor_Widgets.\n\n#### theme-configurator.php\n\nIn this file we create an wpcli command as easy_setup.\n\n* Register new wp cli command as easy_setup.\n* Activate astra addon options, UAE options, change white lables of asta theme and While activate child theme.\n\n#### theme-functions.php\n\nIn this file you can includes theme files.\n\n#### theme-settings.php\n\nIn this file we create a sub page under the astra named as settings. In this file we write a simple setting class. By using this class you can easyly make a setting.\n\n#### theme-shortcodes.php\n\nIn this file you can registers a new custom shortcodes.\n\n#### user-actions.php\n\nThis file use for user related actions.\n\n* Remove application password settings from user profile.\n* Remove Login Shake Animation.\n* Hide Login Errors in WordPress. Add custom login error message.\n\n#### widgets-elementor.php\n\nThis file use for to create a new elementor widgets.\n\n#### woo-actions.php\n\nThis file use for WooCommerce related actions.\n\n#### function.php\n\nIn this file we include only theme-functions.php and decleare some function as follows.\n\n* DISABLE_COMMENTS - Disable comments from comments. Removes comments menu from admin. Default : true\n* DISABLE_EMOJI - Disable the emojis in WordPress from backend \u0026 front end. Default : true\n* DISABLE_OEMBED - Disable all embeds in WordPress. Default : true\n* DISABLE_FEEDS - Disable RSS FEEDS. Default : true\n* DISABLE_ATTACHMENT_PAGES - Disable Attachment Pages. Default : true\n* DISABLE_AUTOMATIC_UPDATES - Disable automatic updates : false\n* DISABLE_AUTOMATIC_UPDATE_EMAIL - Disable automatic updates email. Default : false\n* REMOVE_QUERY_STRINGS - Remove Query Strings From Static Files. Default : true\n* ENABLE_DUPLICATE_POST - Enable option to duplicate posts : true\n* STRICY_ADMIN_MODE - Strict admin mode. : true\n* WHITE_LABEL_ADMIN_FOOTER - White label admin footer. : true\n\n\n#### style.css\n\nYou can add theme related css here.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpgenius%2Fastra-child-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpgenius%2Fastra-child-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpgenius%2Fastra-child-theme/lists"}