$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>WordPress CSS problems with controls|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

WordPress CSS problems with controls

matteradmin9PV0评论

Where and how should I even begin to fix terrible design problems? I can't change the theme, I must learn how to fix it the current one, I guess via CSS? How to align all textboxes properly, how to change box (top is gray) color and button color as well? These are all in simple pages via shortcodes. Thanks.

Where and how should I even begin to fix terrible design problems? I can't change the theme, I must learn how to fix it the current one, I guess via CSS? How to align all textboxes properly, how to change box (top is gray) color and button color as well? These are all in simple pages via shortcodes. Thanks.

Share Improve this question edited Dec 17, 2018 at 22:15 butlerblog 5,1413 gold badges28 silver badges44 bronze badges asked Dec 17, 2018 at 19:55 Vyt AutasVyt Autas 32 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

Yes, this can easily be cleaned up with a little CSS. You can start by using the browser's inspector, hit F12 to open it, and select the element you want to style.

See if that form or something around has an ID, use that to target each element so you don't effect other pages or unwanted elements.

Here are couple example that might help.

#myFormID label,
#myFormID input[type="text"],
#myFormID select {
    display: block;
}

That will put your labels and form elements on different lines.

The best thing to do is just inspect the page and start playing around with the CSS.

Without seeing the actual CSS that is already applied, it is difficult to say "change this and this to fix this and that."

But... to address your concern about the theme, etc. What you should be doing is using a child theme. That way you can customize your work. That allows you to customize in a way that still allows you to update if the theme developer publishes an update.

Another thing to consider is that the WordPress Customizer now has the ability for applying custom CSS within the Customizer interface.

So this may not ultimately be the answer that you need, but hopefully it has some info you can use to make the process easier.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far