I have a Wordpress site using a generic theme. I made React app I would like to use as a frontpage of my site. Already collected data using REST API. How can I integrate my bundle.js into existing Wordpress page?
I think you can use shortcode like this [my_shortcode] in some wordpress page.
Then you need to implement it in your plugin (or new plugin if you have no plugins).
just add the following
add_shortcode( 'my_shortcode', 'my_shortcode_handler' );
In your my_shortcode_handler you can serve the html,js,css of your React App
By using some WP functions like:
wp_enqueue_style
wp_enqueue_script
Related
I'm building a WordPress headless theme that is using vue 3 under the hood.
I'm able to load vue inside a page template, and I've fixed a problem I had with routing when a page were refreshed.
Now I'm facing the i18n internalization problem, I need to have the site translated into different languages, is there a way to do this in an headless theme?
If it was a traditional WP theme there are a lot of plugin that are doing this, but how I can manage this aspect in my vue app by using wp as backend?
I have been developed a wordpress plugin along with vue js. Right now i want make this plugin multi lingual.
Can you guys please helps me out to how i can use vue i18n in wordpress plugin.
I tried to use wp-vue-i18n. But still failed because of proper documentation.
I need to migrate WP blog (Avada theme) to shiny new website built in React. But all the blog posts are filled with code from Fusion page builder that comes with Avada [fusion_text], [fusion_builder_column][fusion_builder_row]... What can I do?
How can I export posts without Avada junk?
You can use WordPress API to get all posts. check Sourcing from WordPress
I am new in WordPress. I know WordPress custom field plugin is an awesome staff. WordPress official documentation shows demo use just as plugin. I want to use this plugin to integrate with my theme.
But i don't know which files i have to call from my functions.php files
Any type of helps will be beneficial for me as i am novice in WordPress.Thanks
I'm using WP REST API to fetch all the post data. Well, it works perfectly, but the major concern for any website is the SEO part. I'm using YOAST SEO plugin. I want to fetch all the Meta tags it creates in the Head section of HTML.
FYI im using Wordpress as Backend and Nodejs in frontend.
The solution is simple. I have added custom endpoints in the function.php file. You can see this Adding Custom Endpoints