Description
This function creates or updates the local.css
file.
Note:
cPanel API 2's Branding
module only modifies data for the x3 theme.
- To customize the Paper Lantern theme, use UAPI functions. For more information, read our Guide to cPanel Interface Customization documentation.
- For more information about x3 theme customizations, read our Legacy Guide to x3 Theme Brandingdocumentation.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Input |
Type |
Description |
Possible values |
Example |
css |
string |
Required The CSS code to add. |
Valid CSS code. |
a:hover{color:#666;text-decoration:underline;} |
Returns
Return |
Type |
Description |
Possible values |
Example |
file |
string |
The updated CSS file. |
The name of a .css file. |
local.css |
path |
string |
The path to thelocal.css file. |
The path to the local.cssfile, relative to the cPanel account's home directory. |
/home/user/cpanelbranding/x3//local.css |
new |
Boolean |
Whether the function created the local.css file. |
|
1 |
result |
Boolean |
Whether the function succeeded. |
|
1 |