Trouble is I cannot find this file. Does it have to be created? If so, is there a sample I can get hold of, with some explanation of the syntax?
My aim is to give commenters acess to a lot more tags than the very basic ones allowed to them by default.
]]>Some searching didn’t uncover an answer to this question, so here I am. I’d be grateful for a smidge of your time.
In short: I’m making some modifications to the template files for the theme I’m using (the theme in this case being Sandbox, but that doesn’t matter), and I’m trying to figure out how best to preserve those changes so that when I upgrade to a new version of the theme, I don’t have to re-apply everything manually.
It appears that my-hacks.php is *not* relevant here, as that file is only used for preserving changes to WordPress’ core files when upgrading to a new version of WordPress itself. Is that right?
A few random examples of the theme mods I’m referring to:
1) Capitalization stuff on buttons.
2) Making certain boilerplate text more personal (eg, in the 404 file).
3) The addition of scripts needed to talk to external services (eg, Google Analytics). I’m obviously not counting stuff that’s inserted by plugins, since the plugin typically continues to work after a theme upgrade.
Again, suggestions would be much appreciated. Thanks!
Nate
]]>Recent
1. .htaccess (for rewrite rules)
2. Main Index Template
3. my-hacks.php (legacy hacks support)
Warning: file(C:\xampp\htdocs\wordpress/) [function.file]: failed to open stream: Permission denied in C:\xampp\htdocs\wordpress\wp-admin\admin-functions.php on line 1454
Warning: implode() [function.implode]: Bad arguments. in C:\xampp\htdocs\wordpress\wp-admin\admin-functions.php on line 1454
I did some reading around here and checked that there was no leading or trailing spaces before and after the php tags – this didn’t fix the problem. I think it may have something to do with loading the .htaccess and my-hacks.php files, because when I click them, I get this error:
“Oops, no such file exists! Double check the name and try again, merci.”
I did a search through the wordpress directory and couldn’t find my-hacks.php anywhere (or any file like it). What’s up? Thanks for the help.
]]>I’m using WP on this homepage: https://baby.gjesager.dk
I needed two catagories to be hidden from the frontpage (2 and 13) so I use this hack:
<?php
if ((empty($_GET[‘cat’]))&&(!preg_match(‘/wp-admin/’, $_SERVER[‘REQUEST_URI’]))) $cat = ‘-2’;
?>
And made catagorie 2 parent to catagorie 13. This solved my problem.
But now I need to make catagorie 13 show on the side bar, along with the other catagories.
Catagorie 2 is to be shown as it is today as a link under Gaestebog.
Solutions without my-hacks.php are very welcome.
j;-)
]]>