jwgreen1976
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress editor deleted text box content, messed up table sizeThanks for the feedback. Yes, it is MORE of a rant, but it’s an issue that WordPress needs to correct, and there may be a solution that does fix this that I’m not aware of.
The issue isn’t a problem with Jupiter. It’s a problem with WordPress.
And I simply can’t trust plugins. I can’t have WordPress update and another vendor not update and then pages are broken.
If there is a way to put simple HTML tags and JS event handlers into WordPress without WordPress trashing your pages or deleting content entirely, I’m all ears, so long as it doesn’t involve downloading yet another plugin.
But I wanted to use ascii characters on a couple of pages, and the only way to get that into the page was to use the visual editor so that you could get to the text tab. I had previously deactivated the visual editor for this reason. Twice bitten, I suppose.
- This reply was modified 6 years, 6 months ago by jwgreen1976.
Forum: Fixing WordPress
In reply to: WordPress editor deleted text box content, messed up table sizeYes, I’ve tried Gutenberg and I’m not impressed.
We are/were converting our site to WordPress for the sole purpose of using the Yoast plugin. I have a static site that has served us well for over a year, except for it needs SEO improvement. I have three custom javascript codes and a set of pages that are php, and WordPress has butchered all of this most horribly.
The PHP pages were butchered at WordPress’ most recent automatic update. The PHP plugin (the most popular on WordPress) caused the thrashing, technically, as they didn’t update their plugin with WordPress, but regardless – overnight I lost 10 pages.
And I’m using the Jupiter theme, which should be well supported as well.
The tables are still functional. There are multiple tables in the page and now SOME of the tables are full width for no apparent reason. I didn’t change a dang thing.
This is more of a rant than a request for assistance, since it is absolutely unacceptable to lose content or have content suddenly and unexpectedly display in a broken manner because one plugin vendor can’t be bothered to update their plugin. We just can’t afford to have broken pages, broken links, or disappearing content. And I now don’t trust plugins altogether.
I appreciate your response. Fortunately, we have not officially converted the site and I am working on it on a beta server. This experience makes me question continuing the process.
- This reply was modified 6 years, 6 months ago by jwgreen1976.
- This reply was modified 6 years, 6 months ago by jwgreen1976.
- This reply was modified 6 years, 6 months ago by jwgreen1976.
Forum: Fixing WordPress
In reply to: Inserting Special Characters into Text BlockI found a/the solution. You have to add the special characters in text mode, but you have to save the page and update it in visual mode. Otherwise you get the special character code and not the special character. Grrrr….
Wordpress’ bias against adding code to pages is absolutely ridiculous, as are the clunky, hackish workarounds and contortions you have to go through to get the simplest of things accomplished.
I had disabled visual editing because it kept stripping javascript from my pages, so now I need to go check that it hasn’t broken something else on this page.
Forum: Fixing WordPress
In reply to: Inserting Special Characters into Text BlockI’ve tried every version of the editor there is: Classic, Editor, Backend Editor, Front End Editor – no luck.
I had upgraded to WP’s beta editor, but it is a massive disappointment.
Forum: Fixing WordPress
In reply to: Stop WordPress from stripping onchange from HTMLThank you for your response, Joy.
I’m guessing if I did have it, it wouldn’t be stripping my html.I will check out the plugins (yay!) to see if something changed it. Just what I wanted to add one piece of HTML, lol. Another plugin!
Forum: Fixing WordPress
In reply to: Stop WordPress from stripping onchange from HTMLThank you, Joy. I am the admin. Is there a place where I can grand myself the unfiltered_HTML capability?
Forum: Fixing WordPress
In reply to: Using Javascript to append URL parameter not workingThank you!
I did add the following to the theme’s functions.php file, with “mc” being the parameter key I want recognized:
function add_query_vars_filter( $vars)
{
$vars[]=”mc”;
return $vars;
}
add_filter( ‘query_vars’, ‘add_query_vars_filter’ );I realize there may be a way to do this all in php, but the parameter won’t persist if the visitor starts a new session, which is why I’m sticking the parameter in localStorage with Javascript.
The localStorage object is being created successfully, and when I open the console, the link that I want changed has an href property which does contains the parameter:
h ttps://xxxxxxxxxxxx/Account/Login?code=xxxxxxx&mc=6540however, the innerHTML is not successfully having the parameter appended:
a href=”https://xxxxxxxxxxxx/Account/Register?code=xxxxxxx”>Apply Now</aI will take a look at the links you gave to see if I’m missing anything. Like I said, on our straight HTML, CSS and Javascript site, this works perfectly:
function getAllUrlParams() {
//assign URL parameters to variable
console.log(“URL Params loaded”);
var queryString = window.location.search.substring(1);if (queryString) {
//split queryString into pairs
var pairs= queryString.split(‘&’);
console.log(pairs);//split pairs into object
var result = {};
pairs.forEach(function(pair) {
pair = pair.split(‘=’);
result[pair[0]] = decodeURIComponent(pair[1] || ”);
});//check localStorage to prevent overwriting values, write values if empty
if (localStorage.getItem(‘brazosMC’) == null) {
localStorage.setItem(‘brazosMC’, JSON.stringify(result));
}
}var elements = document.getElementsByClassName(“apply”);
var i = elements.length;
console.log(elements);
var params = JSON.parse(localStorage.getItem(‘brazosMC’));
console.log(params);if (params !== null) {
if (“mc” in params) {
var url = “https://xxxxxxxxxx/Account/Login?code=xxxxxxx” + “&” + “mc=” + params.mc;
while (i–) {
elements[i].href = url;
}
} else {
console.log(“Key undefined”);
}
}
}- This reply was modified 6 years, 9 months ago by jwgreen1976.
- This reply was modified 6 years, 9 months ago by jwgreen1976.