Absolute URLs from Outside WordPress folder (Themes)
-
I am trying to build a theme from *outside* of the wordpress folder. I hate the theme editor and rather use a shell/insert to get it to work (because I find the theme editor damned annoying–including the “special” wordpress php code which precludes other php code.)
This just confirms my suspicions more. Since I am calling files to the page.php from outside of the wordpress folder I can no longer get it to work. (Did work before–but then wordpress thought it was smarter.)
The WYSIWYG says the code is correct, but when I look at the actual page and the HTML it has *changed my code* but keeps the code the same in the WYSIWYG. (Last bit feel like the program/programmers are being arrogant.) I have tried relative paths, I have tried PHP, I have tried writing out the domain, but the stupid program thinks it is smarter than me and *strips out* everything before the filename. I am only trying to call up an image and one stylesheet. I doubt it is a security risk to the entire site.
Example:
http://www.example.com/file.jpg–> (in WordPress output) file.jpg (Though the code in the WYSIWYG theme editor stays http://www.example.com/file.jpg–which is just more frustrating.)
I need the first, not the second. Again, when I’m making the theme.Is there a way to trick wordpress into letting me echo the domain name in the final result? A plugin?
I find this annoying and frustrating. If you hate absolute paths from the same domain, at least let me call files to the theme from relative paths. Also confirms the reason I hate the theme editor and prefer to strip wordpress and create architecture around it.
Thanks.
- The topic ‘Absolute URLs from Outside WordPress folder (Themes)’ is closed to new replies.