andym193
Forum Replies Created
-
Forum: Networking WordPress
In reply to: a few php files to affect all child themes* I’ve just realized what an mu-plugin is, that might work for my functions.php, I’ll look into that.
Forum: Networking WordPress
In reply to: a few php files to affect all child themesThanks for the reference and your advice, its much appreciated. I am also using the genesis framework. Grandchildren themes would be ideal but I wouldn’t want to use it if wordpress are not supporting it.
The only thing that will be different between my child themes is css
edits and images. (I’m not interested in a css plugin/ jetpack as I am a
digital artist – I want to create my own skin themes and I like to give users a lot of variety). So any php changes (and main css changes to the framework) I need to just do once.Would putting code in the parent theme the best way to go do you think. So if I do an upgrade to the genesis framework, I should just replace the files each time.
I would prefer not to use a plugin for sharing functions between all child themes, would it be okay to add this to the parent theme functions.php all at the bottom, then if I upgrade, I could just copy and paste my added functions to the new upgraded function.php at the bottom again.
So just to clarify,
would you suggest using the parent theme to make these main changes rather than something like for example, adding header.php to all child themes and just putting:
<?php include ‘../default/header.php’; ?>
Then create a default directory, and make my main changes to php files in there.Forum: Networking WordPress
In reply to: a few php files to affect all child themesI hope someone can help me out with this conundrum, i’ll explain another way:
Imagine if I had 2000 child themes.
in each child theme I had my edited function.php, header.php, and comments.php
perfect.
But now I have an error in the code of header.php
I now have to go to all 2000 child themes to correct.
Now I want to add an emoticon shortcode
I now have to go to each 2000 child themes and upload the emoticon.gif in each child theme and add the emoticon shortcode to the function.php in each child theme.
I now want to add some extra functions to function.php, so again I have to go to all 2000 child themes to add the same thing.
I then get an error in the functions.php and so on.Can you see I need something between the parent theme and the child theme so I can just do these edits once. just like the magento default directory.
This is why if I had somthing like <?php include ‘../main/(php file); ?> only in functions.php, header.php and comments.php in all of the 2000 child themes I can just go to the main directory (similar to magento default directory) where I can make the edits I mentioned above.
Forum: Networking WordPress
In reply to: a few php files to affect all child themesYes I know, thats why it would be even easier if I could edit the header.php, and functions.php in the parent theme so I can just make the changes to the parent theme. however, because of problems that I will have upgrading the parent theme, I need to find another way around this, that was the best I could come up with.
If your familiar with magento ecommerce, Something similar to this is possible – it has the base directory (similar to wordpress parent theme)
then you can create a default theme (this is where you can do all the major changes) then you can create another directory which is perfect for skinning the different stores, so Magento goes – ‘base’ then ‘default’ then ‘theme’ –
so it create 3 levels of fallbacks, that is perfect for someone that has lots of different designed stores. If you create a lot of stores with your own designed themes this setup is a life saver.Ideally I need wordpress to be like magento and go: ‘parent’ then ‘default’ then ‘child’. But it can’t do that as it can only go ‘parent’ then ‘child’, which is bad news for my plans. So I’m trying to work out a another way around it like I mentioned with the php includes.
Forum: Networking WordPress
In reply to: Multisite subdomain dashboard doesn't workDid you setup wildcard subdomains?
You need to go to your cpanel and click subdomains, then where it says:
subdomain:
just add a star in the box like this:
*
then click create, you now have wildcard subdomains setup. Try creating a new site now.If it doesn’t work, there are some shared hosts that may not allow you to have a wildcard subdomain setup.
check here for references:
https://codex.ww.wp.xz.cn/Configuring_Wildcard_Subdomainshope this helps.
Forum: Networking WordPress
In reply to: https:// on myhomepage?Thanks guys.
OK thanks for the reply I’ll look into it.