Php code for header Position possible in the Custom Css?

Hello,
to show the header like i want i have the following in the _brand.php.
is it possible to place it in the customizer/ custom / global css?
so i don´t need to update the -brand php if there comes a new xtheme update or something.

how can i upload my php file here to show you?:roll_eyes:

regards
Andreas

Hi Andreas,

Thank you for writing in, the answer is no. Custom > Global CSS is for CSS only (not PHP nor JS).

What you need is a child theme, this allows you to do modification to the theme, and won’t be overwritten when the parent theme updates.

How To Setup Child Themes

Cheers!

Hello Friech,
now i was looking for a child theme. i have my css changes in the customizer, thats why i think i don´t need a child theme.
I have the changes outside the customizer only in one php data. The _brand.php.

i made a change with the h1 / h3 there and something to show logo, description and URL together.
it would be nice i could make this changes saved in the customizer.

can you help me there?

Regards
Andreas

Hi Andreas,

Could you please explain the changes that you have done? so that we can assist you accordingly. You can use the following site to share your code if required (https://pastebin.com/).

Thanks!

hello,
this is the link to new code in the -brand.php
https://pastebin.com/y2zqB5Qx

description logo and sitename are displayed there and the site name isn´t the h1 anymore
cause i have another snippet in my text with h1.

ok?

Regards
Andreas

Hi there,

Unfortunately, you can not do such PHP customization without Child Theme. You changed the _brand.php file in the theme itself and if you update the theme all your changes will be removed. Kindly do add the file to a Child Theme.

But the code is correct and it changes the h1 tag.

Thank you.