Won'tsharehere
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Custom CSS and JS] Spacing problemsHere is the entire general CSS I use in my site:
p {margin-bottom: 0.6em !important} ol, ul {margin: 0 0 0 0} @media screen and (min-width: 796px) { ol, ul {margin: 0 3em 0 0} }- This reply was modified 7 years, 9 months ago by Won'tsharehere.
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
Forum: Plugins
In reply to: [Simple Custom CSS and JS] Feature suggestion: In-all as default modeCovered in the end → covered in the start… Sorry for the confusion. Awful period in my life… :///
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
Forum: Plugins
In reply to: [Simple Custom CSS and JS] No RTL support causes plugin seemingly not to workOh yes, sorry, I also found out the cause so I’ll describe here what I did to anyone who wants to read:
In devtool,
console.log( document.querySelector('.site-title a') )didn’t returnnull, but:<div class="entry-meta">and all its children, which seemed okay.I then figured that the problem was that the the command got executed just before DOM content was being loaded (an event), so reassigning the content after listening to that event, did the trick:
document.addEventListener('DOMContentLoaded', ()=>{ document.querySelector('.entry-meta').innerText = "MY_CONTENT"; });Now I get the expected output. Thank you for all the help and guidance Diana.
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
Forum: Plugins
In reply to: [Simple Custom CSS and JS] No RTL support causes plugin seemingly not to workSeems to me fine there as well:
Forum: Plugins
In reply to: [Simple Custom CSS and JS] No RTL support causes plugin seemingly not to workHmm, it doesn’t seem to me so:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />and:
Forum: Plugins
In reply to: [Simple Custom CSS and JS] Feature suggestion: In-all as default modeBasically you understand me fine, only this:
area of effect -> frontend or backend.
and sorry I confused frontend with backend in the end.
Forum: Plugins
In reply to: [Simple Custom CSS and JS] No RTL support causes plugin seemingly not to workSorry, I didn’t know it was necessary; I choose it and now it’s working and I can edit JS codes fine.
Although I still encounter a problem (that might be RTL related) when in-frontend JS code doesn’t work from the plugin but works fine from devtool console. The code is:
document.querySelector('.entry-meta').innerText = "פורסם על ידי admin";—
As you can see I’ve saved it in the plugin:
but it doesn’t effect the webpage:
while a devtool console execution does indeed effect the webpage:
Forum: Plugins
In reply to: [Simple Custom CSS and JS] No RTL support causes plugin seemingly not to workI did so but sadly it seems not to help :\
Forum: Plugins
In reply to: [Simple Custom CSS and JS] No RTL support causes plugin seemingly not to workI looked again and saw innerText was written as innerTe. That’s wired and caused because of the problem I’ll describe below — I came to fix it and couldn’t do so:
First, I can’t mouse-mark that line of text due to lack of RTL support (only some parts get marked).
If I delete from the end aiming to write “innerText” anew, then the x becomes a capitalized T:
innerTeTtI encountered a similar problem with one letter appearing as another.
—
To reproduce all the problems I described: While working from Windows 10, install latest WordPress and change system language to Hebrew, than install latest SCSJ and do what I showed in the picture.
Thanks,
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
- This reply was modified 7 years, 9 months ago by Won'tsharehere.
Forum: Plugins
In reply to: [Simple Custom CSS and JS] No RTL support causes plugin seemingly not to workBY “not to work” I mean I wrote the code, saved, went to the webpage, did “CTRL+F5” but saw no change.
Forum: Developing with WordPress
In reply to: How to load all plugins CSS after child theme CSS?It is easy for me to do this manually but I would like to automate this (maybe even via WP-CLI via cron, each minute).
About dequeue/enqueue, I don’t know exactly what you mean. Even if I do so, how could I make sure it is loaded right after my page builder (Elementor)?
Forum: Plugins
In reply to: [Autoptimize] No change in site for month, but suddenly grade went downSolved, the reason was the cron command deleted the cache dir and when it was recreated its owner and group were root. I changed the command so it would delete everything in the cache dir, but not the dir itself.
0 0 1 * * for dir in /var/www/html/*/wp-content; do cd "$dir" && cd cache && rm -rf *; done;Forum: Plugins
In reply to: [Autoptimize] No change in site for month, but suddenly grade went downHi Frank, the CSS is very diveresed (not only third party CSS).
Sorry for not checking on first place, yes, it seems the CSS doesn’t recreated.
It is wired, even though the WordPress cache dir permissions are 755, its owner and group are suddenly “root” while all other dirs owner and group is “www-data”…
It even changed for all sites… I don’t recall changing the cache dirs to root root from www-data www-data…
Wired indeed O_o.
Forum: Themes and Templates
In reply to: [GeneratePress] How could I improve the header of my site?@leo I don’t need technical help, I’ll implement the front-end changes myself. Just some design tips or knowing about options to design the header of the site fast with GP…
Given I use Elementor, I might install a plugin that allows customizing it with Elementor.
I could than just add some manual CSS/JS if needed.
But if someone has a tip on what to do with the header, I’ll be glad.
- This reply was modified 8 years, 9 months ago by Won'tsharehere.
Forum: Themes and Templates
In reply to: [GeneratePress] How could I improve the header of my site?No, I’m asking for tips in relation to GP.