Is there a way we can modify the code snippet given below such that it applies not only to our main ‘blog‘ page, but also all subsequent paths? For example, /blog/our-new-widget and /blog/making-plugins-better. We can confirm ‘blog/*‘ (using a wildcard) does not work.
Thank you!
function change_avada_privacy_label() {
if ( is_page( array( 'news', 'blog', 'events', 'contact' ) ) ) {
?>
<script type="text/javascript">
// select all elements with the class name "fusion-privacy-label"
var elements = document.getElementsByClassName("fusion-privacy-label");
// change the innerHTML of each selected element
for (var i = 0; i < elements.length; i++) {
elements[i].innerHTML = "For privacy reasons, we need your permission to load our content.";
}
</script>
<?php
}
}
add_action('wp_footer', 'change_avada_privacy_label');
]]>I want to have a sub-directory URL for the default language same as it is for the translated language. Then choose which sub-directory the domain is opening. Is that possible?
Explanation:
So if default language is English and translated language is German, sub-directory for English should be example.com/en/, and for translated German language should be example.com/de/
The domain example.com can then be set to point either to /en/ sub-directory or to /de/ sub-directory thus enabling choice which language shows first when you open the website.
How can do that with this plugin?
My main site works fine with these settings:
upload_path /home/ssnet/public_html/wp-content/uploads
upload_url_path [blank]
fileupload_url https://ssnet.org/public_html/wp-content/uploads
I believe my upload paths for the sabbathissues.org subsite looked like this (lots of changing back and forth since then):
upload_path: https://ssnet.org/wp-content/blogs.dir/12/files
upload_url_path [blank]
fileupload_url https://sabbathissues.org/files
Upon moving to a new server, a tech support person went beyond the call of duty to apply a “band-aid” solution to make most of the images on the site show up. With a little sleuthing I found that he had inserted a directory redirect in the root directory (public_html). He redirected the address https://ssnet.org/files to https://ssnet.org/sabbathissues. And the images started showing up.
It so happens that I had reproduced the upload directory in the https://ssnet.org/sabbathissues as one of my desperate attempts to restore the images.
My current settings in the Networking Admin Sites setup look like this:
upload_path /home/ssnet/public_html/sabbathissues/files/
upload_url_path https://sabbathissues.org/files/
fileupload_url https://sabbathissues.org/files/
This works only after a fashion, because this is what happens:
When I upload an image it goes to
https://ssnet.org/wp-content/blogs.dir/12/files/2024/02 and the images do not show up in the Media Library unless I choose “Edit.” And they do not show up when I attempt to insert them into blog posts. I have to use FTP to move them to https://sabbathissues.org/files/2024/02, and then the images work as expected.
I tried removing the redirect, and the images immediately disappeared from the site. The only thing I did not try was to put the images in the directory that was redirected, namely https://ssnet.org/files. (Currently there is no such directory.)
I would like to get rid of the redirect, and I would like to be able to upload files and have them work without having to move them via FTP. (https://ssnet.org/sabbathissues is perfect as a file repository, as far as I’m concerned.) Perhaps there is something wrong in the Sites setup that you can see, but it doesn’t look to me like WordPress is paying much attention to the file paths.
(My previous post on this issue was Subsite images do not load after Update to WP5.8 or subsequent updates, but I believe my current questions are sufficiently different to warrant a different post, since I’ve done enough sleuthing to understand a little of what’s going on. Besides, the other post was kind of abandoned … )
I would really appreciate some help on this. (I also have another small subsite with a similar problem. I believe if we can get the one site to work correctly, I can make the other site work too.) Thanks in advance!
i did a trial run of installing WP on domain.com/sub/folder and it works fine, but now i’m wondering how to hook it up when we go live and replace the existing top level site?
current homepage is domain.com/index.php but the WP default is domain.com/SUB/index.php
i guess we’re best with it in the /public_html/ top level, but what’s the best way to manage that when the time comes?
i’m familiar with using .htaccess to redirect homepage if that helps?
or maybe this
require DIR . ‘/SUB/wp-blog-header.php’;
]]>I have WP installed in a sub-directory of our main site. We use the loop to display the posts on our external website. The posts are not viewed via the WP interface. We do not want the public to be able to access the sub-directory at all. What is the best way to hide it? I’ve tried blanking it out or redirecting to main site but use some aspects of the theme (single.php, etc…) so the index has to remain functional. I can’t think of any way to prohibit access without breaking the installation. Any suggestions would be appreciated.
Thanks
Daf
I want to sign up to use WordPress Premium as a blog, but point to it from:
www.mywebsite.com/blog
Is this possible?
It seems a lot of the discussions here are around the locally installed version of WordPress whereas I am wondering about the service on their site listed as Premium.
I guess we could do some proxying type stuff on our side to make this work but does WordPress have some built-in option to make this easier?
Thank you,
Abe
Another question, I turn off the adding meta option of the plugin and use own system outputting OG image, twitter card urls correctly. But the Plugin use its own output tags.
Do I need to use the setting of the plugin instead of our own setting?
(Smart License)
]]>Please help me how to fix it.
]]>