hook – XTRA Tutorials https://xtratheme.com/docs Documentation of XTRA WordPress Theme Sat, 18 Jun 2022 09:11:02 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.2 codevz/option/key https://xtratheme.com/docs/developer/codevz-option-key/ https://xtratheme.com/docs/developer/codevz-option-key/#respond Wed, 26 Jun 2024 09:28:36 +0000 https://xtratheme.com/docs/?p=2682

Example code

Step 1
XTRA

Using WordPress filter to modify any theme options value

In the following example you can see how to change site logo image URL only on home page of your website, Other pages will get logo from theme options.

In filter name you can change xtra/option/logo to modify another option, for example for modifying layout value, try xtra/option/layout and return your value.

HOW

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.

HOW

How to find any theme options key?

In the below screenshot, you can see how to find site width option key. First open your customizer page then find your option and then open your browser inspect element feature to find the input name or data-depent-id attribute. Exactly like below shot you can find key. For site width key is site_width

How to find customizer field id min
]]>
https://xtratheme.com/docs/developer/codevz-option-key/feed/ 0
codevz/importer/after_import_slider https://xtratheme.com/docs/developer/codevz-importer-after_import_slider/ https://xtratheme.com/docs/developer/codevz-importer-after_import_slider/#respond Wed, 19 Jun 2024 12:03:49 +0000 https://xtratheme.com/docs/?p=3076

Example code

Step 1
XTRA

Using WordPress action add content or PHP codes

In the following example you can see how to run your custom PHP codes after importing slider from demo importer side.

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-importer-after_import_slider/feed/ 0
codevz/importer/after_import_content https://xtratheme.com/docs/developer/codevz-importer-after_import_content/ https://xtratheme.com/docs/developer/codevz-importer-after_import_content/#respond Wed, 19 Jun 2024 11:58:32 +0000 https://xtratheme.com/docs/?p=3070

Example code

Step 1
XTRA

Using WordPress action add content or PHP codes

In the following example you can see how to run your custom PHP codes after importing content from demo importer side.

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-importer-after_import_content/feed/ 0
codevz/importer/after_import_widgets https://xtratheme.com/docs/developer/codevz-importer-after_import_widgets/ https://xtratheme.com/docs/developer/codevz-importer-after_import_widgets/#respond Wed, 19 Jun 2024 11:38:18 +0000 https://xtratheme.com/docs/?p=3067

Example code

Step 1
XTRA

Using WordPress action add content or PHP codes

In the following example you can see how to run your custom PHP codes after importing widgets from demo importer side.

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-importer-after_import_widgets/feed/ 0
codevz/importer/after_import_theme_options https://xtratheme.com/docs/developer/codevz-importer-after_import_theme_options/ https://xtratheme.com/docs/developer/codevz-importer-after_import_theme_options/#respond Wed, 19 Jun 2024 11:28:38 +0000 https://xtratheme.com/docs/?p=3064

Example code

Step 1
XTRA

Using WordPress action add content or PHP codes

In the following example you can see how to modify imported theme options array.

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-importer-after_import_theme_options/feed/ 0
codevz/after_footer_2 https://xtratheme.com/docs/developer/codevz-after_footer_2/ https://xtratheme.com/docs/developer/codevz-after_footer_2/#respond Wed, 19 Jun 2024 11:26:07 +0000 https://xtratheme.com/docs/?p=3059

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 footer bottom bar.

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_footer_2/feed/ 0
codevz/before_footer_2 https://xtratheme.com/docs/developer/codevz-before_footer_2/ https://xtratheme.com/docs/developer/codevz-before_footer_2/#respond Wed, 19 Jun 2024 10:46:28 +0000 https://xtratheme.com/docs/?p=3044

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 footer bottom bar.

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_footer_2/feed/ 0
codevz/after_footer_1 https://xtratheme.com/docs/developer/codevz-after_footer_1/ https://xtratheme.com/docs/developer/codevz-after_footer_1/#respond Tue, 18 Jun 2024 11:50:55 +0000 https://xtratheme.com/docs/?p=3024

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 footer top bar.

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_footer_1/feed/ 0
codevz/before_footer_1 https://xtratheme.com/docs/developer/codevz-before_footer_1/ https://xtratheme.com/docs/developer/codevz-before_footer_1/#respond Tue, 18 Jun 2024 11:42:27 +0000 https://xtratheme.com/docs/?p=3020

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 footer top bar.

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_footer_1/feed/ 0
codevz/after_header_4 https://xtratheme.com/docs/developer/codevz-after_header_4/ https://xtratheme.com/docs/developer/codevz-after_header_4/#respond Tue, 18 Jun 2024 11:39:50 +0000 https://xtratheme.com/docs/?p=3015

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 mobile and tablet 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_4/feed/ 0
codevz/before_header_4 https://xtratheme.com/docs/developer/codevz-before_header_4/ https://xtratheme.com/docs/developer/codevz-before_header_4/#respond Tue, 18 Jun 2024 11:36:30 +0000 https://xtratheme.com/docs/?p=3012

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 mobile and tablet 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_4/feed/ 0
codevz/after_header_3 https://xtratheme.com/docs/developer/codevz-after_header_3/ https://xtratheme.com/docs/developer/codevz-after_header_3/#respond Tue, 18 Jun 2024 11:31:22 +0000 https://xtratheme.com/docs/?p=3009

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 header bottom bar.

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_3/feed/ 0
codevz/before_header_3 https://xtratheme.com/docs/developer/codevz-before_header_3/ https://xtratheme.com/docs/developer/codevz-before_header_3/#respond Tue, 18 Jun 2024 11:26:54 +0000 https://xtratheme.com/docs/?p=3006

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 header bottom bar.

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_3/feed/ 0
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
codevz/after_header_1 https://xtratheme.com/docs/developer/codevz-after_header_1/ https://xtratheme.com/docs/developer/codevz-after_header_1/#respond Tue, 18 Jun 2024 11:08:02 +0000 https://xtratheme.com/docs/?p=2994

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 header top bar.

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_1/feed/ 0
codevz/before_header_1 https://xtratheme.com/docs/developer/codevz-before_header_1/ https://xtratheme.com/docs/developer/codevz-before_header_1/#respond Tue, 18 Jun 2024 11:04:52 +0000 https://xtratheme.com/docs/?p=2987

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 header top bar.

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_1/feed/ 0
codevz/after_fixed_side_1 https://xtratheme.com/docs/developer/codevz-after_fixed_side_1/ https://xtratheme.com/docs/developer/codevz-after_fixed_side_1/#respond Tue, 18 Jun 2024 10:57:09 +0000 https://xtratheme.com/docs/?p=2984

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 fixed side.

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_fixed_side_1/feed/ 0
codevz/before_fixed_side_1 https://xtratheme.com/docs/developer/codevz-before_fixed_side_1/ https://xtratheme.com/docs/developer/codevz-before_fixed_side_1/#respond Tue, 18 Jun 2024 10:53:38 +0000 https://xtratheme.com/docs/?p=2981

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 fixed side.

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_fixed_side_1/feed/ 0
codevz/after_slider https://xtratheme.com/docs/developer/codevz-after_slider/ https://xtratheme.com/docs/developer/codevz-after_slider/#respond Tue, 18 Jun 2024 10:50:03 +0000 https://xtratheme.com/docs/?p=2978

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 page slider.

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_slider/feed/ 0