This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .wc-block-components-notice-banner.is-success { | |
| border-radius: 3px !important; | |
| background: #182727 !important; | |
| border: 0 !important; | |
| color: #fff !important; | |
| font-size: 16px !important; | |
| } | |
| .wc-block-components-notice-banner.is-success>svg { | |
| background-color: #ffffff !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In the parent theme | |
| -------------------- | |
| Apply the same filter in multiple places, but with different parameters: | |
| apply_filters ( 'xxx_filter_name', 'value_to_be_filtered_1', 'parameter_1a', 'parameter_2a' ) | |
| apply_filters ( 'xxx_filter_name', 'value_to_be_filtered_2', 'parameter_1b', 'parameter_2b' ) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In customizer.php: | |
| <?php | |
| if ( class_exists( 'WP_Customize_Panel' ) ) { | |
| class PE_WP_Customize_Panel extends WP_Customize_Panel { | |
| public $panel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function style_and_scripts() { | |
| ... | |
| wp_enqueue_style( 'plugin-install' ); | |
| wp_enqueue_script( 'plugin-install' ); | |
| wp_enqueue_script( 'updates' ); | |
| ... | |
| } | |
| public function create_action_link( $state, $slug ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg | |
| Exemplu: | |
| http://img.youtube.com/vi/82W503BSF10/0.jpg | |
| And for Vimeo, we can get like this: | |
| http://vimeo.com/api/v2/video/<video-id>.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function bookrev_migrate_favicon(){ | |
| if ( function_exists( 'wp_site_icon' ) ) { | |
| if ( get_theme_mod('old-favicon-image') ) { | |
| $id = attachment_url_to_postid( get_theme_mod('old-favicon-image') ); | |
| if ( is_int( $id ) ) { | |
| update_option( 'site_icon', $id ); | |
| } | |
| remove_theme_mod( 'old-favicon-image' ); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wp_enqueue_style('zerif_ie_style', get_template_directory_uri() . '/css/ie.css', array('zerif_style'), 'v1'); | |
| wp_style_add_data( 'zerif_ie_style', 'conditional', 'lt IE 9' ); | |
| wp_enqueue_script( 'zerif_html5', get_template_directory_uri() . '/js/html5.js'); | |
| wp_script_add_data( 'zerif_html5', 'conditional', 'lt IE 9' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -> Remove formularul pentru cupon pe pagina de checkout: | |
| remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 ) | |
| -> Remove login form de pe pagina de checkout: | |
| remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_login_form', 10 ); | |
| -> Move coupon code form on checkout page, after the "Your order" table: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://wpml.org/documentation/support/language-configuration-files/ | |
| Creez un fisier wpml-config.xml de genul: | |
| <wpml-config> | |
| <admin-texts> | |
| <key name='theme_mods_zerif-lite'> | |
| <key name='zerif_copyright' /> | |
| <key name='zerif_socials_facebook' /> | |
| <key name='zerif_socials_twitter' /> |
NewerOlder