-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to insert verification codes to extendify theme - no header.php file #149
Comments
Hi @Rolevents, Thanks for reaching out. The Extendable theme is a block theme that uses the new Full Site Editing (FSE) technique, which is why there’s no header.php file. However, you can still insert verification codes into the site using the Extendable Child theme by adding the code to the functions.php file.
If you need further assistance, feel free to ask! |
Hi. Wow, thanks for the quick reply and the help with child theme. Will look into it and try to implement the child theme. Parimate soovidegaRoland KivitareTartu, Eesti53853935On 27. Jun 2024, at 04:52, Chris Lubkert ***@***.***> wrote:
Hi @Rolevents,
Thanks for reaching out. The Extendable theme is a block theme that uses the new Full Site Editing (FSE) technique, which is why there’s no header.php file. However, you can still insert verification codes into the site using the Extendable Child theme by adding the code to the functions.php file.
Get the Extendable Child theme from here.
Unzip the Extendable Child theme.
Edit the functions.php file.
Add this code snippet to the functions.php file:
function extendable_insert_custom_head_meta_and_scripts() {
?>
<!-- Google Tag Manager -->
<script>/* Your GTM code here */</script>
<!-- End Google Tag Manager -->
<!-- Facebook Verification -->
<meta name=“facebook-domain-verification” content=“your_facebook_verification_code” />
<?php
}
add_action(‘wp_head’, ‘extendable_insert_custom_head_meta_and_scripts’);
Add your verification codes in the code you just added inside functions.php and save the file.
Zip the Extendable Child theme file and upload it to the site:
Go to your WordPress dashboard.
Navigate to Appearance > Themes.
Click on Add New and then Upload Theme.
Upload the extendable-child.zip file you just created and activate the theme.
If you need further assistance, feel free to ask!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi there.
So I got the child theme installed. But Is there a way now to copy all the modifications that I have done into the child theme? Or do I have to start over?
Parimate soovidega,
Roland Kivitare
***@***.***
5385 3935
Tartu, Estonia
<https://arinouandla.ee/smart-manufacturing-meetup/konverents/> <https://arinouandla.ee/smart-manufacturing-meetup/konverents/>
… On 27. Jun 2024, at 04:52, Chris Lubkert ***@***.***> wrote:
Hi @Rolevents <https://github.com/Rolevents>,
Thanks for reaching out. The Extendable theme is a block theme that uses the new Full Site Editing (FSE) technique, which is why there’s no header.php file. However, you can still insert verification codes into the site using the Extendable Child theme by adding the code to the functions.php file.
Get the Extendable Child theme from here <https://drive.google.com/file/d/1vaU3by9t2dw5dlUvffhXD2GrSNnOBbJs/view?usp=drive_link>.
Unzip the Extendable Child theme.
Edit the functions.php file.
Add this code snippet to the functions.php file:
function extendable_insert_custom_head_meta_and_scripts() {
?>
<!-- Google Tag Manager -->
<script>/* Your GTM code here */</script>
<!-- End Google Tag Manager -->
<!-- Facebook Verification -->
<meta name=“facebook-domain-verification” content=“your_facebook_verification_code” />
<?php
}
add_action(‘wp_head’, ‘extendable_insert_custom_head_meta_and_scripts’);
Add your verification codes in the code you just added inside functions.php and save the file.
Zip the Extendable Child theme file and upload it to the site:
Go to your WordPress dashboard.
Navigate to Appearance > Themes.
Click on Add New and then Upload Theme.
Upload the extendable-child.zip file you just created and activate the theme.
If you need further assistance, feel free to ask!
—
Reply to this email directly, view it on GitHub <#149 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BJPFMD2VPHJB65XKJIUUOPLZJNV7HAVCNFSM6AAAAABJ6Q3HZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSHEYDIMBQGI>.
You are receiving this because you were mentioned.
|
I don't think there is a good way to export/import styles only, unfortunately. If you've made a lot of changes and don't want to redo them, you could also consider using a plugin that allows you to insert the GTM and Facebook verification codes in the header. Then, you wouldn't have to use the child theme. |
-hi there. I'm not much of a programmer, but a digital marketer so please help me find the solution to insert different verification codes to the theme tags.
Usually I create a child theme for my client's wordpress websites and insert GTM and Facbook verification codes there so they will not be overwritten but I can't find one.
So how should I go about this? I have acces to theme files on the server. The setup was pretty easy through my server provider Zone.ee and I used some AI feature to set everything up. Looking good and I prefer to not go back to Astra + Elementor sh*t hahahaha.
Sry for the stupid question, but please guide me through it. ;)
The text was updated successfully, but these errors were encountered: