Stallion Responsive Child Theme was updated to version 8.4 September 6th 2016. What is a WordPress Child Theme? Before WordPress added the child theme feature users would heavily modify their WordPress themes with code hacks etc… and when the theme was updated they would loose all their modifications or they would have to again modify the latest theme update and many users wouldn’t update because it was too much hassle. WordPress child themes are designed to add extra features, add code hacks, modify theme files etc… to the main theme (called the parent theme like Stallion Responsive is the parent theme) and allow users to make code changes to a parent theme without editing the parent theme files. Stallion Responsive […]
Continue Reading Responsive WordPress Child Theme
When to Activate Child Theme
Can the Responsive Child Theme be updated via the WordPress update page, or must it be downloaded here and installed as a .zip file?
Also, If both the Responsive main theme and the child theme are already installed on my site and activated; does it matter which is updated first and why?
After updating the main theme I still see on the “child theme page” that ALL the “child theme options are NOT available”. Why? Should I be deactivating the parent theme and then activating the child FIRST? Don’t quite get the order here and when to update and if it matters, which one to update first.
Can you explain this is a bit more detail because I want to be able to use the child features.
Thanks
When to Activate Child Theme
WordPress Child Theme Manual Updates
When WordPress updates a theme like Stallion Responsive it downloads the zip file, extracts the contents into a temp directory (like /wp-content/updates/stallion-responsive/), DELETES the original theme folder (so for Stallion deletes /wp-content/themes/stallion-responsive/), and moves the new folder from the temp location to /wp-content/themes/…
If you made any modifications to a parent theme they are lost because the old folder is deleted/replaced. That’s why we have WP child themes for modifications, although everything under /wp-content/themes/stallion-responsive/ is deleted and replaced, anything under /wp-content/themes/stallion-responsive-child/ (the child theme) is left as is.
Since WordPress child themes are aimed at modification of parent theme features it wouldn’t be a good idea to have an auto update feature (you’d loose your changes) which is why it’s a manual process: download zip file, extract, upload using FTP.
Child theme files that have been modified by the theme developer (me) are replaced with new files that are uploaded via FTP, what’s modified by the user (you) should first be updated to the new files anything new added (like custom images) won’t be overwrote.
It’s not a perfect setup, a user who doesn’t understand the above can loose modifications they’ve made to a child theme if they don’t keep backups, but it’s a much better system than modifying parent theme files where a user could modify dozens of files. I’ve kept the Stallion child theme simple (most of the child theme is images), in this update only three files changed:
style.css : just changed the version number to 8.2.
timthumb.php : latest version of Timthumb.
st_responsive_child.php : added one new option that match new main theme features related to font schemes.
For those who use the child theme for the free header images etc… and don’t mess around with changing PHP code all you have to do is upload the new files over the old using FTP and your done.
There’s only one new feature in the child theme related to the new fonts schemes, if you don’t update to 8.2 it still works in the parent theme, just means there’s less options if you want to build custom font schemes. Also added three new header/banner image sets dogs, kittens and wild flowers. So 24 new header/banner images.
For those who modify theme files.
I recommend any code modifications are put in functionsplus-child.php so that would be the most likely file to use a users modified version. So if you are a person who modifies code just make sure your modifications are backed up and you re add them at each child theme update.
OK, if you are seeing no available options on the child theme options page you haven’t got the Stallion Responsive child theme active, you have the parent theme active.
Check the child theme option: Child Stallion 2011 Header Images are there should be around 2 dozen options? If not go to Appearance >> Themes : Find the Stallion Responsive Child Theme
At the bottom of the image it should say:
Active: Stallion Responsive Child Theme
With a blue Customize button to the right.
If you don’t see this it’s not active. Click the Activate button and the child theme will activate. All your Stallion Responsive options will stay as is, but because you’ve switched themes any menus set under Appearance >> Menus won’t be set, set them to how you had them.
You can only have one theme active at a time.
If you activate Stallion Responsive that’s it, no child theme options.
If you activate Stallion Responsive Child Theme that’s the theme that’s active, but because it’s a child theme it uses all the Stallion Responsive parent theme options/features as well.
So all you do is activate the Stallion Responsive Child theme, not the Stallion Responsive Theme and the Stallion Responsive Child theme.
You should always update the parent theme first.
Stallion Responsive Child Theme v8.2 might not work with Stallion Responsive 8.1 (would probably work, haven’t checked).
Stallion Responsive 8.2 will work fine with Stallion Responsive Child Theme 8.1.
David
WordPress Child Theme Manual Updates
Widget Issue With Child Theme Update
Thanks for the in depth information. However, just a couple more clarifications needed. And, YES I did mess up. I did accidentally updated and activated the Stallion Responsive theme before installing the new zip Child theme. I really messed up this time! :(
What is the difference between uploading the .zip contents via FTP or via the upload feature in the themes page? I uploaded the .zip file v8.2 using the upload from computer option on the theme upload page. After doing this, I activated the child and now ALL my widgets which were previous set and visible on the correct posts / pages and still appear on the Widgets Pages on the correct sidebar, have now mysteriously disappeared.
Is there a fix?
Thanks.
Widget Issue With Child Theme Update
WordPress Widgets Moved Bug
No real difference between updating a parent theme via FTP or the theme updater other than by FTP files are overwrote/replaced rather than deleted and uploaded again. If you have custom files in a parent theme (added your own images for example) uploading via FTP means they won’t be deleted. Since you should be using a child theme for modifications…
I’ve seen WordPress widgets move to the wrong widget area (not disappear completely ) after a theme update when the updated theme has added new widget areas (which is the case with Stallion Responsive 8.2).
It’s a while since I saw this issue and thought it had been fixed in an earlier version of WordPress. If you aren’t running WordPress 4.* could be that bug.
In Stallion 8.2 added new widget areas Left 2 and Right 2 which pushed other widgets down the order. In earlier versions of WordPress found when adding new widget areas the widgets wouldn’t be loaded in the correct widget areas as follows:
Before Update
Widget Area 1 – Category Widget
Widget Area 2 – Empty
Widget Area 3 – Tags Widget
Widget Area 4 – Meta widget
After Theme Update
Widget Area 1 – Category Widget
Widget Area 2 – Empty
New widget Area 2a – Tags Widget
Widget Area 3 – Meta widget
Widget Area 4 – Empty
By adding a new widget area all the widgets below that area have shifted up a level! They are still in an area, but the wrong ones, fix is move them to where they should be.
I tested for this in Stallion Responsive 8.2 in WordPress 4.0 and WordPress 4.1 (themes should be compatible for the last two main versions of WP) and no problems. In the process of updating over 100 domains to WordPress 4.1 and Stallion Responsive 8.2 and so far no issues with widgets moving. Did find a couple of small code typos, hence why there’s a Stallion Responsive 8.2.1 update one day after 8.2 was released.
Hmm, reread what you wrote. If Stallion Responsive 8.1 is already installed you can not update using the upload from computer option, it fails (that’s WordPress core feature, can’t install/update a theme that already exists). The only way you could do this is if you renamed the Stallion Responsive folder either at /wp-content/themes/stallion-responsive-renamed/ or you modified the zip file before updating (not a good idea).
This would be a mess, you shouldn’t rename the parent theme folder, but if you did this it would allow you to ‘update’ via the upload from computer option, though it would be installed as a new theme and all your widgets would be cleared (new theme active doesn’t respect widgets set from other themes).
If you did something like this it will be a mess since Stallion Responsive will be installed twice. What’s the URL?
For updates just go to the WordPress Update page (hoverover Dashboard on left menu click Updates).
David
WordPress Widgets Moved Bug
Widget Issue With Child Theme Update
Thanks As Usual Dave,
I actually found the fix to my widget problem. After the update all my widgets went to the ‘inactive widgets’ area on the widgets page.
I moved them all to the correct page and it seems to work correctly now.
Sub Nav Menu
Why won’t my sub nav menu work. I went back into my menus and reset the Sub Nav menu with the correct links that I wanted but it does not appear on my site after the updates to both the Stallion Responsive main theme and the Child install of the zip file.
I actually would like the Sub Nave menu to appear directly below the Main Menu bar. Is this possible?
Is there a setting somewhere to select
1. where the sub nav menu displays?
2. to say you want to display the sub nav menu?
Thanks
Sub Nav Menu
WordPress Nav Menu Locations
No idea since I don’t know what a sub nav menu is?
Is it a nav menu location by any chance, if so which one of the four?
Whatever you had working with Stallion Responsive 8.1 should work with 8.2 (child or parent theme).
Based on current support issues sounds like you’ve either made a mess with changing theme folder names or have uninstalled Stallion Responsive and reinstalled or reset all options. This would cause the issues you are reporting, it’s like installing Stallion for the first time, but you didn’t realise it’s installing for the first time and confused why options have changed.
A URL would help with this sort of support request, Stallion Responsive has over 1,000 options, there are four types of navigation menus which interact with two different header areas which have their own options. I don’t know which header area you are using (2001 or alternative), which navigation menu area you are dealing with of the 4 available…. And if you made a mess by changing folder names, if you did change folder names it needs fixing, Stallion Responsive won’t work correctly if it’s not under the folder /stallion-responsive/.
David
WordPress Nav Menu Locations
Current Year for Copyright
Is there a way for the current year to be present in the footer with the copyright such as: ©2016? Also have it to update automatically without me manually changing it. I’m able to change the year on my legal pages by changing the date of the posting but I can’t change it on the homepage.
Thank you.
WordPress Theme Copyright Date
There’s a comment about this at https://stallion-theme.co.uk/wordpress-hacks/?cid=47572
Your Home page date will use the year of your last published Post, so to change it without hacking the footer.php file update a Post to 2017 (assuming you want 2017).
David
Updated to V8.4 but left strip on screen
Hello David,
I updated to Child Theme V8.4 but prior to that there is a small strip that reminds me of a mobile display for my website. Here is my staging of the domain while updating: http://45.56.126.8:8080/staging.acupuncturetreatmentnews.com/
Would appreciate some help because I can’t seem to get rid of it.
Thank you.
WordPress Soft 404 Redirect Feature Clash
It’s a clash between two features on some setups (not 100% sure why).
The two features are:
“Promotion Options” : “Social Network Profile Links” any side option set to on.
This adds a floating set of Socila Media profile links, that’s the dark strip trying to load on the left of your test site (should be social media links).
And
“SEO Advanced Options” : “Stallion 404 Redirects” set to on.
The Social Media links are loaded in an iFrame (for SEO reasons) and dynamically loads the social media profile accounts added under the “Edit My Profile” page: one of the links in the top right of your Dashboard under the “Howdy Your Name” link.
The Stallion 404 Redirect feature soft 404 redirects any 404 error pages (missing webpages etc…) back to your home page to recover link benefit.
On some setups the social media dynamic webpage within the iFrame URL (which for your test site is 45.56.126.8:8080/staging.acupuncturetreatmentnews.com/wp-content/themes/stallion-responsive/social.php?author=1) is a 404 error page so is automatically redirecting to home (so your home page is loading in the small iFrame).
When the iFrame URL and the Stallion 404 Redirects ON features works together the iFrame URL looks like this https://stallion-theme.co.uk/wp-content/themes/stallion-responsive/social.php?author=1 (I have the floating social media links disabled on ths site, but the dynamic page still exists).
Have a possible fix: https://stallion-theme.co.uk/stallion-responsive-possible-fix.zip
The zip file contains 2 modified files, extract them and upload just the two files to
“/wp-content/themes/stallion-responsive/”
to replace the files “social.php” and “social-bio.php”.
If those don’t fix the clash the only other option is disable one of the features: if you have a site which doesn’t have a lot of 404 error pages disable the 404 redirect feature. That feature is for sites where a LOT of webpages have been deleted (or URLs changed) and you haven’t manually setup 301 redirects, basically a quick fix to recover lost link benefit.
David
WordPress Soft 404 Redirect Feature Clash