Comments for JournalXtra https://journalxtra.com Mon, 25 May 2015 00:39:36 +0000 hourly 1 Comment on Really Simple Traffic Logger by Bri https://journalxtra.com/web-development/php/really-simple-traffic-logger/#comment-29117 Mon, 25 May 2015 00:39:36 +0000 https://journalxtra.com/?p=3018#comment-29117 Thank you!

Really appreciated.

]]>
Comment on Use WordPress Featured Image as Post and Page Background Picture by JournalXtra https://journalxtra.com/wordpress/quicksnips/use-wordpress-featured-image-post-page-background-picture/#comment-29116 Sun, 24 May 2015 23:16:16 +0000 https://journalxtra.com/?p=6358#comment-29116 Glad you were able to get it to work in your single page theme, Benjamin. Thank you for posting your solution.

]]>
Comment on Really Simple Traffic Logger by JournalXtra https://journalxtra.com/web-development/php/really-simple-traffic-logger/#comment-29115 Sun, 24 May 2015 23:11:57 +0000 https://journalxtra.com/?p=3018#comment-29115 Hello Bri, I’ve moved the file to GitHub and corrected the download link. Thank you for letting me know the download button was missing.

]]>
Comment on Really Simple Traffic Logger by Bri https://journalxtra.com/web-development/php/really-simple-traffic-logger/#comment-29068 Sat, 23 May 2015 16:19:40 +0000 https://journalxtra.com/?p=3018#comment-29068 Hello, this traffic logger looks interesting but download link is not working, I see “[wpdm_file id=12]”
If is possible, can you fix the link ? Thanks

]]>
Comment on Use WordPress Featured Image as Post and Page Background Picture by Benjamin Christensen https://journalxtra.com/wordpress/quicksnips/use-wordpress-featured-image-post-page-background-picture/#comment-29058 Sat, 23 May 2015 08:08:58 +0000 https://journalxtra.com/?p=6358#comment-29058 Hi there,
thx for your post.

I ran into some issues using a singlepage child theme:

Notice: Undefined variable: post in /mypath/public_html/wp-content/themes/from-open-hearts/functions.php on line 22

Notice: Trying to get property of non-object in /mypath/public_html/wp-content/themes/from-open-hearts/functions.php on line 22

Notice: Use of undefined constant full – assumed ‘full’ in /mypath/public_html/wp-content/themes/from-open-hearts/functions.php on line 22

I solved it by doing the following:

add_action( 'wp_head', 'vr_set_featured_background', 99);
function vr_set_featured_background() {
  if ( is_single() ) {
    global $post;
    $image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false );
    if ($image_url[0]) {
      ?>

        html,body {
            height:100%;
            margin:0!important;
        }
        body {
            background:url() #000 left top no-repeat;
            background-size: 100% 100%;	
        }

        /* Uncomment if the image hangs low in a Genesis theme */
        /*.site-inner {
            padding-top:0!important;
            padding-bottom:0!important;
        }*/
        
      < ?php
    }
  }
}
]]>