benoitadam
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: add default color to wordpress theme (for background)Yes, it works. It just doesnβt do what you think it should do.
The add_theme_support function is a way for core WP to know what the theme is doing in the stylesheet. It is not for WP to output a style.It add support Yes, but it doesnot load a defaut color.
I’m just following official guideline here, but again, it doesn’t work like it seems to be supposed to.
The theme stylesheet should not be loaded in the admin, unless you designate it for the editor style sheet, and then itβs only in the editor.
Well using the default style.css on the /themename/ fodler it does. But maybe you have a workaround about that
As a theme author, you have to write the CSS so that it applies only to what it should apply to.
so is there a method to add background-color other than adding it to the <body> then ?
Forum: Developing with WordPress
In reply to: add default color to wordpress theme (for background)From Twenty-Twenty One I copy this code :
// Custom background color. add_theme_support( 'custom-background', array( 'default-color' => 'd1e4dd', ) );Still, doesn’t work…
This is all [a problem], to be honest.
- This reply was modified 5 years, 4 months ago by Steven Stern (sterndata).
Forum: Developing with WordPress
In reply to: add default color to wordpress theme (for background)The documentation says this :
https://developer.wordpress.org/reference/functions/add_theme_support/#custom-background
When I put this :
$defaults = array( 'default-color' => 'a62829', ); add_theme_support( 'custom-background', $defaults );It just doesn’t work
How am I supposed to put it in my stylesheet ? If I put it in “Body” , it also applyes to the back-end… and that’s a big NO for theme reviewers (and also for me)
Forum: Developing with WordPress
In reply to: add default color to wordpress theme (for background)Did you tried to do it from dashboard.
For that just click on Appearance->Customize->Colors & Dark mode tabe-> Site background Color.I just have the option to put an Image, But I can’t change the color
Perhaps your theme overrides the default in the stylesheet, or you didnβt put the # in front to make it a color.
Where could it overide ? I’m writing a theme from skratch here…
same with the “#” :/
Forum: Fixing WordPress
In reply to: Theme Check (Domains name)Ok we checked again : there was a space on one of my array : ” simplebootstrap4″ instead of “simplebottstrap4”
Cheers
Forum: Fixing WordPress
In reply to: Theme Check (Domains name)This :
/* Theme Name: simplebootstrap4 Theme URI: https://www.sauksie.fr Author: Benoit Adam & Numa Krouchi Author URI: https://www.spiralstatic.eu Description: Simple Bootstrap 4 is a basic theme. It started as a school project. Version: 0.1 Requires at least: 5.3.2 Requires PHP: 5.2.4 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: simplebootstrap4 Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */Forum: Fixing WordPress
In reply to: Media Library Update ButtonMMmmm probably need a plugin to add a refresh…
But I think it will be faster to build a “F5” usb-key… π
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Dual languageBut how ? Is there a translate button ? Or is everything automatic and need to wait for the plugin to scan the website ?
Forum: Fixing WordPress
In reply to: Media Library Update ButtonI inserted a button to import images from a server folder into media library
From a plugin or from something you made ?
Forum: Fixing WordPress
In reply to: Adding Feedback Form During a Video PlaybackYou mean during the video ?
That seems to be hard one. It’s kinda an overlay video, that is technically possible, like Youtube sometimes ask for feedback at the beginning of the video…
Even if it’s possible, there’s a possibility that adblock would block it… so you will need an anti-adblock plugin…!
Forum: Fixing WordPress
In reply to: strict MIME checking is enabled. (posts only…)Hey,
I don’t quite get it (I know MIME don’t worry I use Linux π )
Where do you get your error exactly ?
Can you post a screen ?
Did you write a file and upload it to your website ?
Wich WordPress Version do you use ?
Wich Operating System are you using ? Windows ? Mac ? Linux ?Cheers
Forum: Fixing WordPress
In reply to: WordPress returning 404 for multisite pagesHey,
Not a pro here, but maybe these questions will help complete your topics :
What is your WordPress version ?
What tool are you using locally ?
What Operating System are you using ?
Did you check your firewall ?Cheers
P.S : the pro guy on my right says multi-site on local seems very difficult to him and won’t even try to do it π
- This reply was modified 7 years, 3 months ago by benoitadam.
Forum: Fixing WordPress
In reply to: Media Library Update ButtonHey,
I think normally it’s automatically updated ?
Is there another user using it ? It’s your files or the file of other people that you don’t see ?
What is your WordPress Version ?
Cheers