ha_ulrich
Forum Replies Created
-
Forum: Plugins
In reply to: [Central Color Palette] Uploaded file format not supportedAlso, afterthought;
in my newest implementation, I only inject the CSS uponadd_action( 'elementor/editor/before_enqueue_scripts','');so I think if I run an export again, the css won’t be in it… in your plugin screen the elementor editor doesn’t fire.
But, I’m still open to a better, more neat, option! 🙂
(because, who doesn’t want to restrict content editors to only choose safe colours ?)
Forum: Plugins
In reply to: [Central Color Palette] Uploaded file format not supportedHi Daniel,
Thanks for the quick response! Those were options I should have checked out myself on beforehand…I just opened the files in Sublime quickly, to provide you some response – I’ll be away from work for a week from tomorrow on, thus no reply…
I saw immediately what the faulty part was.
I’ve been hacking a bit into the css, to make the pcr-color-palette and the pcr-color-chooser disappear (read: not hide, because then the input generates NaN values). This CSS got in my previous implementation, simply hurled into the body at some point. And it got 1:1 pulled along in both exports, making them corrupt.So here comes a follow-up question.
The exact thing I do is:<style>.pcr-app .pcr-color-palette { width: 170px;height: 170px;visibility: hidden !important;position: absolute; } .pcr-app .pcr-color-chooser {display: none;}</style>but there must be a better way to not to invoke the two choosers at all. I’ve browsed through your code, and it seems to be possible to omit them; but via the plugin, I’m not able to. What I try to achieve is that, in the color popup, people can only choose:
– the row of pre-set colors
– the opacity slider
because my marketing team may only choose branded colors, no derivates and certainly not the whole rainbow! 😉Is there any *good* way to achieve that? 🙂
I’m able to add scripts to WP functions, so if I need to unload specific functions, … that’s an option.- This reply was modified 5 years, 9 months ago by ha_ulrich.
Forum: Themes and Templates
In reply to: [Pinboard] I DONT want my site responsive!Turned into a flame, I beg you pardon?
I really do not like to be put away as someone who flames, which I’m not. On contrary (I’ve been a well-respected moderator of a largely visited Dutch graphics forum for 3 years).
I’m trying to point you in the right direction here, which was about time after ignorance of 3 helpful posts and use of capitals in the title.
Again, if this is your work, your job, be motivated to learn what you are actually doing. That makes it also easier to explain your clients why things do or do not work as they would like to see it. Again, I mean it well.
Forum: Themes and Templates
In reply to: [zAlive] How do I make changes a child theme?The files you have in the Child Theme editor are right.
These files will overwrite the code that is written in the original files.
Are you familiar with CSS? If not, read into it.These first lines on top of the CSS file are comments (recognisable by the /* */) and they should be there, so the child theme can find it’s parent.
Below these lines you can start on your custom CSS.
For example, start withbody { color: red; }You will see it overrules the original color of the body text.
If you know CSS, you can make up what you want to overwrite.
Sometimes it is necessary to overwrite exactly the same CSS as how it was written in the parent theme style.css. You might need to look that up.If the header and footer files are just fine in your opinion, then don’t fill or alter the child theme .php files in the editor. Leave them as they are. They completely overrule the original files, so if you make any errors, this error will appear in your page as well. You need to know PHP and HTML to alter or extend these files.
Forum: Themes and Templates
In reply to: [Pinboard] I DONT want my site responsive!Well first of all, it wasn’t my intention to be rude to you. I appreciate your efforts, but keep in mind that already 3 people gave you clues, and you keep asking the same question. I may have used some words that come across more offensive than I would interpret them. I’m not a native English speaker.
What I mean is that often, if you ask yourself first what you want to accomplish, you can find it more easily on Google than that you ask it here and wait for an answer for a day or more. There’s so much you can try out yourself without breaking it – and with the trial-and-error, you learn more of the system, too.
If it’s your work, I’d really advise you to try some things out and get familiar with it. So please don’t stop asking, but don’t stop exploring either! Good luck.
Forum: Themes and Templates
In reply to: [Customizr] No headerCustomizing a theme involves at least a little knowledge of ‘technics’ – that being CSS (Cascading Style Sheets) and maybe even Child Themes.
(A Child Theme ensures your customizations don’t get thrown out when a theme gets updated by the author).
I suggest you try to look for Theme Options in the theme itself, and when it is not possible there, that you look for a different theme then.
Forum: Themes and Templates
In reply to: [Corpo] using textures on black ribbon headerGood that you started out with customizing the CSS.
You now say you do it through a plugin.
Maybe you could use a different approach, called ‘Child Theme’. The WordPress Codex has a topic on it, just search for it.Setting up a child theme is easy and will allow for many customizations.
Moreover, you can be sure that the child theme overrules your current theme.If you, for example, set a custom background on the correct element, but it is later on overruled by the theme itself, you won’t see the outcome. So I’d say using a child theme is a more reliable way.
Forum: Themes and Templates
In reply to: [Customizr] No headerHave you tried looking up the theme options – maybe you can switch it off? Have you tried setting it to display:none with help of CSS?
Forum: Themes and Templates
In reply to: [Pinboard] I DONT want my site responsive!I suggest that you read the answers that are already given to you, and that you either switch to another theme, that you get some knowledge of CSS, and more important: Child Themes.
Make yourself a Child Theme and do some minimal CSS fixes to make the site look the way you want it.
You’ve got a free theme, but it is only 90% what you wanted. Why are you whining? It was free! If you have the money, pay the maker and have it extended. If that’s not worth it, learn about Child Themes and CSS and do it yourself.
You might realize that you’re sounding like a spoilt brat.
Forum: Themes and Templates
In reply to: [Duena] Changing all the pinkI am surprised that this poor trick should be the solution.
I have installed the Duena theme with its horrible lollipop pink edges thinking that a smart template like this could be changed in a smart way. I was wrong.
My best approach was to search through your style.css and find all the lines that mentioned the pink colour. I copied all statements and cut out unnecessary css. After all, CSS is cascading.
I imported my ‘colors.css’ in my child theme’s style.css, directly after the duena-style. This appears to be insufficient.
I read above that it is necessary to also overwrite part of your used plugins. This is a really bad way of writing maintainable code, if I may say, and I won’t be the last.
With a pink colour like this, you may expect that 9 out of 10 users want to customize it. Have your code prepared for it. This could have been done way better. I am moving on to another theme that’s more flexible.
My tip: create a ‘color.css’ that overwrites all set colours. It will help your users a bunch. Going to your code like a mole, digging up all your colour definitions here and there, does not.
You can copy the code there and put it in your, or in a separate CSS file, at least when you make use of a Child Theme.
Then, it’s in there twice.
To get it out of the plugin, you’ll have to edit the plugin files. Find it and take or comment it out.
Of course that is not the best way. When your plugin is updated by the author, your customizations get overwritten. Can you get in contact with the author and ask him to add it in a CSS-file in his plugin, instead of dumping it in your code? That would be the best, also for other users.
Forum: Plugins
In reply to: [Plugin: Image Widget] PNG destroyed after SaveUpdate: I’ve now inserted an opaque PNG. That goes well.
It is not the best solution, as I like the logos to be transparent ‘just in case’. Why would there be a problem with transparent PNG’s?