kpatelneha23
Forum Replies Created
-
@spinoops this is what I did to replace words in the English event pages. It’s not the best solution but it works.
Add this to your functions.php in child theme.
function replace_words_on_en_events_pages() { $current_url = $_SERVER['REQUEST_URI']; if (strpos($current_url, '/en/events/') !== false) { ?> <script> // Function to replace words on the page function replaceWordsOnEnEventsPages() { // Define the words and their replacements const wordReplacements = { "Ajouter au calendrier": "Add to Calendar", "Date de l’événement": "Event Date", "Heure de l’événement": "Event Time", "Partager l’événement": "Share", "Inscrivez-vous": "Register", "Acheter": "Buy Now" // Add more word replacements as needed }; // Select the content container where you want to perform the replacements using class const contentContainers = document.querySelectorAll(".mep-events-container"); // Loop through each content container and perform the replacements contentContainers.forEach((container) => { let content = container.innerHTML; // Loop through the word replacements and perform the replacements for (const [searchWord, replacement] of Object.entries(wordReplacements)) { const regex = new RegExp(searchWord, "gi"); // "gi" means global and case-insensitive content = content.replace(regex, replacement); } // Set the modified content back to the container container.innerHTML = content; }); } // Call the replaceWordsOnEnEventsPages function when the page is loaded document.addEventListener("DOMContentLoaded", replaceWordsOnEnEventsPages); </script> <?php } } add_action('wp_footer', 'replace_words_on_en_events_pages');
- This reply was modified 1 year, 4 months ago by kpatelneha23.
The error only shows up with PHP 8.1 update. When I downgrade to PHP 7.4 it disappears.
HI Elementor,
I’m getting the same error and my French version of the site is not functioning properly.
[Sat Mar 11 11:18:23.912654 2023] [fcgid:warn] [pid 62722:tid
120193944246016] [client?201.185.245.151:49850] mod_fcgid: stderr: PHP
Fatal error:? Uncaught TypeError: Unsupported operand types: string / int
in
/home/dh_ez99pc/albertarkilanian.com/wp-content/plugins/elementor/includes/libraries/bfi-thumb/bfi-thumb.php:748,
referer:?https://uebernet.dreamhost.com/my site – https://www.albertarkilanian.com/fr/accueil/
How do I fix it?
Hello @javmah,
I made sure there were no extra spaces and also tried to copy it in code editor multiple time.
Here are the images
- This reply was modified 2 years, 1 month ago by kpatelneha23.
Forum: Fixing WordPress
In reply to: Header, Footer, Theme options missing from WordPress websiteHello @cybepe,
This is all very useful information.
Thank you, I will try to understand this in-dept and create a ticket in Bitnami WordPress community.
Thanks again.
NehaForum: Fixing WordPress
In reply to: Header, Footer, Theme options missing from WordPress websiteHello @cybepe,
This new server which is using the latest Bitnami WordPress stack on AWS is for a test. Before we actually decide to move the live site to the new server.
The test server does not have a ssl certificate and hence the http instead of https.I can export theme settings from my local and live, not a problem.
But the weird situation that happens on this new server is that the the header, footer, theme options go missing and they only show up with I add the absolute path to the wp-content as displayed above in the wp-config.php file.
I would like to know from other people’s experience if this is a permissions thing or is it a good practice to define absolute path to the wp-content in the wp-config.php file or will it give me any issues in future.
Thank you,
NehaForum: Plugins
In reply to: [Contact Form 7] stopped working since updatesame issue.
Forum: Plugins
In reply to: [Yoast SEO] Fatal Error after updating to Yoast 14.1Hello,
I came across the same issue while updating the plugin yesterday. I had to deactivate the plugin.
Following this thread. If anyone can help.
Forum: Fixing WordPress
In reply to: My WordPress site takes forever to load.try pinging your site in the terminal and see how long it takes to respond.
Also you can try checking if too many instances of apache are running. This make your site really slow and takes forever to load.
This can be a result of DDOs attack. This happens all the time in standalone WordPress sites on AWS.