main – XTRA Tutorials https://xtratheme.com/docs Documentation of XTRA WordPress Theme Sat, 18 Jun 2022 08:47:28 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.2 codevz/after_header_2 https://xtratheme.com/docs/developer/codevz-after_header_2/ https://xtratheme.com/docs/developer/codevz-after_header_2/#respond Tue, 18 Jun 2024 11:16:58 +0000 https://xtratheme.com/docs/?p=3001

Example code

Step 1
XTRA

Using WordPress action add content or PHP codes

In the following example you can see how to add content or PHP codes after main header.

XTRA

How and where should I add this PHP codes?

Best solution is to add custom actions and filters in Child Theme functions.php file. But also you can create your own plugin and use this codes in your plugin.

]]>
https://xtratheme.com/docs/developer/codevz-after_header_2/feed/ 0
codevz/before_header_2 https://xtratheme.com/docs/developer/codevz-before_header_2/ https://xtratheme.com/docs/developer/codevz-before_header_2/#respond Tue, 18 Jun 2024 11:10:37 +0000 https://xtratheme.com/docs/?p=2997

Example code

Step 1
XTRA

Using WordPress action add content or PHP codes

In the following example you can see how to add content or PHP codes before main header.

XTRA

How and where should I add this PHP codes?

Best solution is to add custom actions and filters in Child Theme functions.php file. But also you can create your own plugin and use this codes in your plugin.

]]>
https://xtratheme.com/docs/developer/codevz-before_header_2/feed/ 0