Questions tagged [paths]
The paths tag has no usage guidance.
130
questions
0
votes
1
answer
25
views
Is there a way to get a path to the theme directory without the server name?
I need to use file_get_contents() in my theme to include an SVG file. As far as I know, an obvious way to do this would be the following:
file_get_contents("https://example.com/wp-content/themes/...
0
votes
1
answer
55
views
wp_enqueue_script() with unknown path and maybe symlink
I'm developing a plugin that may also be used as a library in themes or plugins.
I need to enqueue a custom script, but I cannot know the absolute path to the script, as the final location of the ...
0
votes
0
answers
121
views
How to link the path of a folder situated in public.html for a random video player?
I'm new to coding and I'm struggling a bit with migrating my code to wordpress. I made a Random Video player with PHP to play a random file from specific folder on load. I tested it locally and ...
0
votes
1
answer
43
views
Why isn't my SVG path rotating on scroll on iPhones?
I'm trying to get a path inside an inline SVG in the Header of my website to rotate when the user scrolls the page. It's a really neat feature, but it's not working on some iPhones.
Here's the ...
-1
votes
1
answer
155
views
How to give path to files in plugins folder?
How to give path to enqueue in functions.php
wp-content/plugins/dl-grid-addons/includes/wp-bakery/tsw/tsw-tools/assets/js/tsw-tools.js
0
votes
0
answers
69
views
Absolute and relative paths
Hello I am new to this and i want to export my local made website on xampp and add to hosting ( live ) and i need relative paths in theme and everything but i have Absolute how to change it?
0
votes
1
answer
51
views
How to add tags under categories
How to add specific tags under categories on Wordpress
Main categories on my blog
example.com/recipes
example.com/fashion
example.com/beauty
example.com/life
I want to add tags under this recipes ...
3
votes
1
answer
6k
views
How to get path or root of plugin folder, not file or dir?
I want to include one file from the plugin root to somewhere in the plugin folder.
Folder structure:
/plugin
/folder <- Can't 'esacpe' from this folder to root
/otherfolder
/req-file-to-...
0
votes
0
answers
26
views
Multisite problem with unexisting paths to CSS etc
I have the multisite Wordpress site:
domain.com/siteA
domain.com/siteB
Now when the post is published on main site (domain.com), it looks fine because bunch of resources are OK path:
https://domain....
1
vote
1
answer
323
views
Pulling images from a subdomain
I have created a sub-domain img.domain.com and in the database I have changed the required paths inserting the root and the url to this sub-domain. I have also changed these paths in options.php under ...
0
votes
1
answer
261
views
Apply function.php filter only if url not has /amp/
I applied a filter to remove theme styles and javascript in function.php, but I want this to happen only if the url not ends with /amp/
0
votes
1
answer
869
views
Add custom path to url to specific pages
Right now all pages path like /faq/ or /about/. I need path like /home/faq/ /home/about. I tried change url slug in edit page. But Wordpress change my home/faq to home-faq.
I installed plugin Create ...
0
votes
1
answer
279
views
specifying relative file paths in WP with jQuery requests not working
Why does it seem that WP requires me to utilize the entire and true file path instead of being able to use a relative file path? I know for safety its better not to use a true file path.
In one of my ...
1
vote
1
answer
80
views
How much control do we have over CPT rewrite slugs? Can I create a "root" page for my CPT with out the page path, and then have paths for other pages?
Say I have a CPT called I dunno, "Library" which is just a set of "pages" ("has_archive" => false) and the rewrite slug is "library". I also intend to have ...
0
votes
0
answers
65
views
Error in the paths of one of the plugins when changing the plugin directory
I decided to change the standard path to the plugins folder. Now all my plugins are located in site.com/modules
In wp-config I have the following written:
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '...