iago2
Forum Replies Created
-
The auther told me to use his cdn.
So can I integrate
wp_register_script( string $handle, string|bool $src, string[] $deps = array(), string|bool|null $ver = false, bool $in_footer = false )in the functions.php of any theme without braking something?
Forum: Developing with WordPress
In reply to: add call to action button within pictureI think this is the function that renders that header image (it is really not clear if the image belongs to the header or already to the page):
the file is called: class-intro.php
code:
* 50) Special intro * * Front page special intro wrapper: open * * @since 1.0.0 * @version 1.0.0 */ public static function special_wrapper_open() { // Requirements check. if ( ! is_front_page() || NanoSpace_Post::is_paged() ) { return; } echo '<div class="intro-special">'; } // /special_wrapper_open /** * Front page special intro wrapper: close * * @since 1.0.0 * @version 1.0.0 */ public static function special_wrapper_close() { // Requirements check. if ( ! is_front_page() || NanoSpace_Post::is_paged() ) { return; } echo '</div>'; } // /special_wrapper_close /** * Setting custom header image as an intro background for special intro * * @uses <code>nanospace_esc_css</code> global hook * * @since 1.0.0 * @version 1.0.0 */ public static function special_image() { // Pre. $disable = (bool) apply_filters( 'nanospace_intro_disable', false ); $pre = apply_filters( 'nanospace_intro_special_image_pre', $disable ); if ( false !== $pre ) { if ( true !== $pre ) { echo $pre; // Method bypass via filter. } return; } if ( $css = self::get_special_image_css() ) { wp_add_inline_style( 'nanospace', (string) apply_filters( 'nanospace_esc_css', $css . "\r\n\r\n" ) ); } } // /special_imageForum: Developing with WordPress
In reply to: add call to action button within pictureOk, I surely will understand the filter concept one day. But isn’t it a bit overkill, to start with these filters, if I just want to add a simple html-button?
By the way if I just add some more html code to the $titel – parameter of the apply filter, where do I add the additional HTML? And I also should give it some styling?? Where do I add my CSS?
Forum: Developing with WordPress
In reply to: add call to action button within pictureThanks @bcworkz for your precise answer.
protected_title_format, private_title_format, the_title, these are all callback functions within the get_the_title function and apply_filters() is the filter-hook for managing the callbacks, right?
What are these callbacks good for and how do they help me e.g. to add an extra button to the header/header image?
Thanks, iago
Forum: Developing with WordPress
In reply to: add call to action button within pictureThanks a lot for the answers, I’ve also opened a thread at the nanospace forum.
I googled for the_title() and I got this function here:
the_title( string $before = '', string $after = '', bool $echo = true )Where do I find that function and how do I add the markup, just adding it as a string parameter for the_title?
- This reply was modified 5 years, 5 months ago by iago2.
Forum: Localhost Installs
In reply to: no db conncetion / local installation of on MAPMThanks.
I changed the wp-config parameters (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST) then it worked. However I didn’t get what role the wp-config.php plays during the installation process. First of all I have a file called wp-config-sample.php, this will be deleted then?? How does this work?