Automatically update subdomain website code on main domain changes - subdomain

We have a website - let's call it mywebsite.com - and we are adding a subdomain website - let's call it au.mywebsite.com.
The 2 websites will be identical in terms of design (HTML, CSS, JS etc.).
If I make changes to the design of the main website - mywebsite.com - is there a way to automatically push the changes to the subdomain website?
The website in question is a Shopify eCommerce website.

Sadly, there is no such way you can update 2 websites simultaneously. I hope Shopify develops a webhook to inform file changes in the future. You can do the following to achieve your requirement:
Make your changes to your main website.
Write a script to pull all the assets from your main website
Update all the assets in your subdomain website
Assets API Documentation - Link
Alternatively, there is also a solution present for your problem at Shopify University. The solution tells you how to compare files and push data to another website. You can check it out here.

Related

How to use another theme and create a new site on redirected site

how to create another website on redirected site?
I want to use another theme and create a new site on redirected site without remove redirection of that site. So is it possible?
You can create another website on a redirected site by using subdirectories or subdomains.
Like, if the redirected site is abc.com, you can create a new website at abc.com/new-website. The redirection will still be in place for the main domain, but the new website in the subdirectory will have its own separate theme, content, and functions.
Or you can use subdomains. So, if the redirected site is def.com, you can create a new website at new-website.def.com. Even here, similar to the previous scenario the subdomain will have its own separate theme, content and functions.
Do you want to use the same Wordpress cms or custom? First, create a sub-folder in your file manager using addon domains. Then, you can work and test the website. Let me know if you have a question.

2 websites wordpess and html on one domain

I have a website that is made on wordpress, and it is on the main domain for example test.com. From this wordpress application I need only production part and it will be on the subdomain product.test.com, and the main website will be on html and css. So the question is, can I do like that? And can this wordpress and html websites stay on different hostings?
And should I just change the wordpress application to product.test.com and then put the main html, css website on the main domain?
Yes, it is doable
Just when you go to manage domain > setup dns > change nameservers here
Here you can put your customized DNS or A records etc whenever will be required
It may vary hosting to hosting but the core part will remains same

How do I use wordpress to enable a website owner to update my custom HTML?

I am coding the website linked below. I want to set it up so that my client can update basic areas of the site (using Wordpress) without going into the code. I installed Wordpress in the Kualo hosting service, but I can't find any tutorials that show me how to enable my client to make updates to this page. If, for example, my client wants to change the menu item at he top of the page to say "DOCUMENTS" instead of "RESOURCES", how would they do that? I want to keep my custom-made html but allow the basic text components of the site to be modifiable by my client via the wordpress interface. Any guidance would be appreciated!
http://layouthuprising.org/LAYU.html

Is this a script to help users to add new posts through a GUI?

These days, I decided to abandon WordPress and create my own website through Bootstrap3. But, I stopped in a point where I could not add new posts without manipulating an html page (to add a new title for my new article) and link it to another html page (where the whole article is). I asked a few friends who are much better than me in web development, and they told me the only way to make a new post is through making and uploading a new html page to your server.
So, is what my friends told me true?
There are a few websites that get updated every week like this one here: https://pythonprogramming.net
Does the website's owner append new html pages only to his website? That is impossible!
So you dicthed a CMS and created a static website which should act like a CMS?
Wordpress is a CMS, Content Management System, which for example gives you those dynamic links after you create content in the Dashboard.
Bootstrap is a framework which gives you the building blocks to create a template but it doesn't have any automation etc. what comes to publishing content.
If you're using static pages, ie. index.html & news.html, you need to create a new file for every new page (article) you're about to publish, ie. news-article-1.html and link to that file from the news.html. That's where your friends are correct. If you're planning to create a complex website with tens of pages & articles I'd recommend using some CMS, Wordpress is good for that. If you can't find a theme you like you can always create your own.
You can always build your own simplified CMS with dynamic links etc. but why bother when there's dozens to choose form.
The page you're linking, Python Programming, is using a CMS. I would guess one built with Django because of the folder structure.

How to embed/integrate WordPress blog into my own web site?

I have a WordPress blog account already (abc.wordpress.com). And I have my own web site: www.xyz.com
I would like to integrate my WordPress blog content into my own site. Hopefully something like blog.xyz.com or just replace the home page of xyz.com with abc.wordpress.com
I know that I can download WordPress' code from wordpress.org and run my own WordPress. And having my own MySQL database, but WordPress is always releasing new code. I don't have the time to keep updating the source on my end to match it.
I'm running my own site as a hobby, so I prefer to let WordPress.com to manage the content for me and continue reuse my own blog at abc.wordpress.com, but make the content show up in my own site: xyz.com
I hope I was clear when explaining this.
Anyone knows a way to do this?
Thanks.
If your main worry is about the updates, I would say don't be. A simple click of the 'Updates' button in the wordpress admin is all you need to do in order to apply the updates for wordpress. A notification will pop up alerting you of any updates.
And as Calle has already mentioned, you can retrieve your content via RSS, or you could just export your current content from Wordpress.com, import the content into your own site, and manage it there. Everything would be in one spot.
Good Luck.
I don't know how good you are with programming but there's a PHP library called Simple Pie which would help you retrieve your content via RSS (which Wordpress automatically generates for you). The adress is here: http://simplepie.org/
If you are not very good with programming, perhaps you can get someone to do it for you or find a script which is already written somewhere. I do think RSS is definitely the best way to go.
I also think you exaggerate the problems of hosting Wordpress yourself. It's not something that you have to keep updated with, and if you want to, all you have to do is log in from time to time, perhaps once a month (how often are you writing articles?), and click "update" and Wordpress will do everything for you. Both for your plugins and WP version.
For the ability to use your own domain (xyz.com) and have wordpress redirect users from abc.wordpress.com(your wordpress blog) to your domain requires a premium account.
If you have a premium account then you can just log in to wordpress.com, click 'upgrades' and select 'domains'. From there you will see the option "Map an Existing Domain" and you will want to enter your domain here. Now your wordpress.com blog is what will show when users enter your domain's url (xyz.com).
Alternatively, if you need a workaround with a free wordpress.com account then you want to just embed your blog and for that you will need to use an RSS feed. Note: this method will not maintain your wordpress styles it will merely transport the content. Also by default not all browsers support RSS feeds.
You can view your blog's current feed by adding 'feed' to the end of your wordpress.com url, i.e. abc.wordpress.com/feed. You can read more about feeds here (http://en.support.wordpress.com/feeds/). Now you are just left with the task of figuring out how to embed the feed into your page.
One final hail-mary you might attempt is just redirecting your domain to your blog. Reference on how to do this different ways here: (http://css-tricks.com/redirect-web-page/). Example, place this tag in the section of your domains pages:
<meta http-equiv="refresh" content="0; URL='http://google.com'" />
(this will redirect after 0 seconds to the specified url)