![]() */ function disable_default ( ) add_action ( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css' ) Insert these codes for disable some of the plugins in functions.php below the add_action( 'after_setup_theme', 'generate_setup' ) function: Open up functions.php in the theme directory that you use. Some of the broken links errors came from the default plugin in the templates. To have this all fixed, you have to disable some plugins in order to have the main WP Website up and running again. The problem is when you are using public IP host to set up the WP admin, the Ip Address will mix up with the home URL in your WP theme template causing broken links when accessing the template theme assets. The use of different site_url() and home_url() functions in WordPress templates was for a developer that wants to have the WP Website have a different admin URL from the main WP website URL. Or you can define site_url() and home_url() in wp-config.php if you prefer to write codes. Insert your website domain in Site Address (URL). Insert the Hosting Public IP Address in WordPress Address (URL) field. This set-up will bring GraphQL API endpoint available in different host for your JavaScript framework to connect with the GraphQL client.Īs for this writing, I am using a default WordPress 5.9-alpha-51804, a generatepress theme, and another plugin such as Yoast. ![]() ![]() to make your WordPress website customizable. In addition to that, you might want to use plugins such as WPGraphQL: GraphQL API for WordPress a Headless WordPress CMS combine with Advanced Custom Fields for WordPress Developers. The reason you want to do this is that somehow you want to implement some Headless CMS with JavaScript framework in the front-end and still use WordPress for the backend.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |