Forum Replies Created

Viewing 15 replies - 196 through 210 (of 427 total)
  • Thread Starter 007me

    (@007me)

    Richard,

    Great!
    that worked!
    See here:
    https://blog.udiburg.com/about/

    thanks a lot!!!

    Thread Starter 007me

    (@007me)

    Here’s the content-page.php
    https://gist.github.com/007me/09df260597dc10cdb1611f2b1d4cb594

    the function.php code is:

    <?php
    
    // put your code here
    define ("NIRVANA_VERSION","1.1.1");
    
    // Removes nirvana_actions from the nirvana_header phase
    function remove_nirvana_actions() {
        remove_action('cryout_branding_hook','nirvana_header_image');
    }
    // Call 'remove_nirvana_actions' during WP initialization
    add_action('init','remove_nirvana_actions');
    
    // Add our custom function to the 'nirvana_header' phase
    
    add_action ('cryout_branding_hook','nirvana_header_image_udi');
    
    function nirvana_header_image_udi() {
    
    	$nirvanas = nirvana_get_theme_options();
    
    	foreach ($nirvanas as $key => $value) { ${"$key"} = $value ; }
    
    	global $nirvana_totalSize;
    
    	// Header styling and image loading
    
    	// Check if this is a post or page, if it has a thumbnail, and if it's a big one
    
    	global $post;
    
    	if (get_header_image() != '') { $himgsrc = get_header_image(); }
    
    	if ( is_singular() && has_post_thumbnail( $post->ID ) && $nirvana_fheader == "Enable" &&
    
    		( ($nirvana_duality=='Boxed')? $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'header' ) : $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ) ) &&
    
    		$image[1] >= $nirvana_totalSize ) : $himgsrc= $image[0];
    
    	endif;
    
    	if (isset($himgsrc) && ($himgsrc != '')) : echo '<a href="/"><img id="bg_image" alt="" title="" src="'.$himgsrc.'" /></a>'; endif;
    
    }
    
    /* Remove WordPress version meta */
    remove_action('wp_head', 'wp_generator');
    /* End of remove WP version meta */
    
    /* Removing WordPress version from styles and scripts’ enqueue */
    
    function firmasite_remove_version_from_assets(){
    function remove_cssjs_ver( $src ) {
    if( strpos( $src, '?ver=' ) )
    $src = remove_query_arg( 'ver', $src );
    return $src;
    }
    add_filter( 'style_loader_src', 'remove_cssjs_ver', 999 );
    add_filter( 'script_loader_src', 'remove_cssjs_ver', 999 );
    }
    add_action("wp_head", "firmasite_remove_version_from_assets",1);
    
    /* end of  Removing WordPress version from styles and scripts’ enqueue */
    /* Jetpack related post title */
    function jetpackme_related_posts_headline( $headline ) {
    $headline = sprintf(
                '<h3 class="jp-relatedposts-headline"><em>%s</em></h3>',
                esc_html( 'מידע נוסף שיכול לעניין אתכם:' )
                );
    return $headline;
    }
    add_filter( 'jetpack_relatedposts_filter_headline', 'jetpackme_related_posts_headline' );
    /* end of Jetpack related post title */
    /* Change the number of related posts */
    function jetpackme_more_related_posts( $options ) {
        $options['size'] = 6;
        return $options;
    }
    add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_more_related_posts' );
    /* End of change the number  of related posts */
    /* Add pages to related posts */
    function jetpackme_add_pages_to_related( $post_type, $post_id ) {
        if ( is_array( $post_type ) ) {
            $search_types = $post_type;
        } else {
            $search_types = array( $post_type );
        }
     
        // Add pages
        $search_types[] = 'page';
        return $search_types;
    }
    add_filter( 'jetpack_relatedposts_filter_post_type', 'jetpackme_add_pages_to_related', 10, 2 );
    /* End of add pages to related posts */
    
    ?>
    
    Thread Starter 007me

    (@007me)

    Done Richard 🙂

    Thread Starter 007me

    (@007me)

    Done that. didn’t work 🙁

    Thread Starter 007me

    (@007me)

    Thread Starter 007me

    (@007me)

    Richard,

    Tried the code on the page.php template of my child theme but with no results.
    See here:
    https://blog.udiburg.com/about/

    Thread Starter 007me

    (@007me)

    Richard,

    Thanks a lot.
    I’ll test the code for the page template.

    Thread Starter 007me

    (@007me)

    I saw this part. It says that in the related posts it will display also pages.
    It doesn’t explain if this plugin will be displayed on pages.
    Maybe I need to add the short code for it in the pages?

    Thread Starter 007me

    (@007me)

    Yes!!!
    Fine with me 🙂
    The higher the better 🙂
    Thanks.

    Thread Starter 007me

    (@007me)

    Jeremy,

    Thanks again! Good to know.
    I will go over the whole Jetpack to see what other news there are.
    Maybe I can eliminate more plugins 🙂
    Thanks again!

    Udi

    Thread Starter 007me

    (@007me)

    Jeremy,

    Although the website looks ok now, when using F12 yuo still see tons of errors:
    see here for example:
    https://www.dropbox.com/s/yyradbukgufhxpa/More-errors.jpg?dl=0

    The site is here:
    https://ramon253.udiburg.com/%d7%90%d7%99%d7%a8%d7%95%d7%a2%d7%99%d7%9d/

    Thread Starter 007me

    (@007me)

    Jeremy,

    Many thanks!!!!
    You saved me!
    Disabling the plugin solved the issue!

    thanks a lot!

    Udi

    Thread Starter 007me

    (@007me)

    Hi Jeremy,

    Here is the log. Looks like something with the PHP:

    [02-Nov-2017 19:15:23 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GRSC_Shortcodes_Buttons has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/graphene-shortcodes/inc/shortcodes.php on line 66
    [02-Nov-2017 19:15:23 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LockOutPlugin has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 18
    [02-Nov-2017 19:15:23 UTC] PHP Notice: admin-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/admin.php instead. in /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/functions.php on line 3959
    [02-Nov-2017 19:15:23 UTC] PHP Notice: Undefined index: action in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 22
    [02-Nov-2017 19:15:23 UTC] PHP Notice: Undefined index: page in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 26
    [02-Nov-2017 19:15:23 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; whosmechanic has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php on line 38
    [02-Nov-2017 19:15:23 UTC] PHP Notice: Undefined index: HTTP_ACCEPT in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/any-mobile-theme-switcher/any-mobile-theme-switcher.php on line 117
    [02-Nov-2017 19:15:23 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GRSC_Shortcodes_Buttons has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/graphene-shortcodes/inc/shortcodes.php on line 66
    [02-Nov-2017 19:15:23 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LockOutPlugin has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 18
    [02-Nov-2017 19:15:23 UTC] PHP Notice: admin-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/admin.php instead. in /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/functions.php on line 3959
    [02-Nov-2017 19:15:23 UTC] PHP Notice: Undefined index: action in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 22
    [02-Nov-2017 19:15:23 UTC] PHP Notice: Undefined index: page in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 26
    [02-Nov-2017 19:15:23 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; whosmechanic has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php on line 38
    [02-Nov-2017 19:15:30 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GRSC_Shortcodes_Buttons has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/graphene-shortcodes/inc/shortcodes.php on line 66
    [02-Nov-2017 19:15:30 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LockOutPlugin has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 18
    [02-Nov-2017 19:15:30 UTC] PHP Notice: admin-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/admin.php instead. in /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/functions.php on line 3959
    [02-Nov-2017 19:15:30 UTC] PHP Notice: Undefined index: action in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 22
    [02-Nov-2017 19:15:30 UTC] PHP Notice: Undefined index: page in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 26
    [02-Nov-2017 19:15:30 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; whosmechanic has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php on line 38
    [02-Nov-2017 19:15:31 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php:77
    Stack trace:
    #0 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php(48): whosmechanic->new_user()
    #1 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php(131): whosmechanic->whosmechanic()
    #2 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/class-wp-widget.php(395): wp_onlinemechanic->widget(Array, Array)
    #3 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/widgets.php(738): WP_Widget->display_callback(Array, Array)
    #4 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/themes/fluida/sidebar-left.php(13): dynamic_sidebar(‘widget-area-lef…’)
    #5 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/template.php(688): require_once(‘/home/udiburg00…’)
    #6 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/template.php(647): load_template(‘/home/udiburg00…’, true)
    #7 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/general-template.php(122): locate_template(Array, true)
    #8 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/themes/fluida/includes/core.php(269): get_sidebar(‘left’)
    #9 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/themes/fluida/page.php(25): fluida_get_sidebar()
    #10 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/template-loader.php(74): include(‘/home/udiburg00…’)
    #11 /home/udiburg007/public_html/udiburg.com/ramon253/wp-blog-header.php(19): require_once(‘/home/udiburg00…’)
    #12 /home/udiburg007/public_html/udiburg.com/ramon253/index.php(17): require(‘/home/udiburg00…’)
    #13 {main}
    thrown in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php on line 77
    [02-Nov-2017 19:15:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GRSC_Shortcodes_Buttons has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/graphene-shortcodes/inc/shortcodes.php on line 66
    [02-Nov-2017 19:15:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LockOutPlugin has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 18
    [02-Nov-2017 19:15:33 UTC] PHP Notice: admin-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/admin.php instead. in /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/functions.php on line 3959
    [02-Nov-2017 19:15:33 UTC] PHP Notice: Undefined index: page in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 26
    [02-Nov-2017 19:15:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; whosmechanic has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php on line 38
    [02-Nov-2017 19:15:48 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GRSC_Shortcodes_Buttons has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/graphene-shortcodes/inc/shortcodes.php on line 66
    [02-Nov-2017 19:15:48 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LockOutPlugin has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 18
    [02-Nov-2017 19:15:48 UTC] PHP Notice: admin-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/admin.php instead. in /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/functions.php on line 3959
    [02-Nov-2017 19:15:48 UTC] PHP Notice: Undefined index: action in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 22
    [02-Nov-2017 19:15:48 UTC] PHP Notice: Undefined index: page in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 26
    [02-Nov-2017 19:15:48 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; whosmechanic has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php on line 38
    [02-Nov-2017 19:15:48 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php:77
    Stack trace:
    #0 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php(48): whosmechanic->new_user()
    #1 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php(131): whosmechanic->whosmechanic()
    #2 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/class-wp-widget.php(395): wp_onlinemechanic->widget(Array, Array)
    #3 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/widgets.php(738): WP_Widget->display_callback(Array, Array)
    #4 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/themes/fluida/sidebar-left.php(13): dynamic_sidebar(‘widget-area-lef…’)
    #5 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/template.php(688): require_once(‘/home/udiburg00…’)
    #6 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/template.php(647): load_template(‘/home/udiburg00…’, true)
    #7 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/general-template.php(122): locate_template(Array, true)
    #8 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/themes/fluida/includes/core.php(269): get_sidebar(‘left’)
    #9 /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/themes/fluida/page.php(25): fluida_get_sidebar()
    #10 /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/template-loader.php(74): include(‘/home/udiburg00…’)
    #11 /home/udiburg007/public_html/udiburg.com/ramon253/wp-blog-header.php(19): require_once(‘/home/udiburg00…’)
    #12 /home/udiburg007/public_html/udiburg.com/ramon253/index.php(17): require(‘/home/udiburg00…’)
    #13 {main}
    thrown in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php on line 77
    [02-Nov-2017 19:15:50 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GRSC_Shortcodes_Buttons has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/graphene-shortcodes/inc/shortcodes.php on line 66
    [02-Nov-2017 19:15:50 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LockOutPlugin has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 18
    [02-Nov-2017 19:15:50 UTC] PHP Notice: admin-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/admin.php instead. in /home/udiburg007/public_html/udiburg.com/ramon253/wp-includes/functions.php on line 3959
    [02-Nov-2017 19:15:50 UTC] PHP Notice: Undefined index: page in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/lock-out/lock-out.php on line 26
    [02-Nov-2017 19:15:50 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; whosmechanic has a deprecated constructor in /home/udiburg007/public_html/udiburg.com/ramon253/wp-content/plugins/mechanic-whos-online-visitor/wp-whosmechanic.php on line 38

    Thread Starter 007me

    (@007me)

    Will try that Jeremy.
    didn’t solve the others. they are still there.
    Udi

    @haiticu this solves only the comments.
    what about the likes?

Viewing 15 replies - 196 through 210 (of 427 total)