ThemeShaper Forums » Thematic

[closed]

Thematic breaks the LinkedIn WordPress app

(9 posts)
  • Started 4 years ago by axerickson
  • Latest reply from cookieweb
  • This topic is resolved
  1. I've added the WordPress application to my LinkedIn account. Well, I added it a long time ago. And it's been working fine until today when I switched to the Thematic WordPres theme. When switching to Thematic the LinkedIn WordPress app returned the "sorry, we can't find a WordPress blog at this adress" error.

    Yes, I've tried the base URL as well as the feed URLs.

    In any case, I've switched to another theme so that the LinkedIn app would work. I'm not really sure where to start to debug this as I don't know how WordPress and LinkedIn integrate.

    FWIW my blog is andyerickson.org and my LinkedIn profile is www.linkedin.com/in/andyerickson. If you want to see the problem, email me at andy@andyerickson.org and I'll switch the theme back to Thematic.

    Thanks,
    Andy

    Posted 4 years ago #
  2. Hi axerickson-

    Thematic filters out the_generator by default. I'm not really sure why. A lot of people out there believe it increases security not to advertise your generator and version no. I'm guessing Ian falls into that camp. Unfortunately doing so can break things like the Linkdin WordPress app which is looking for the generator to do it's thing. Anyway lets get on to fixing it. I wish there was a switch in the thematic_remove_generators() function but there isnt so lets rebuild it from scratch.

    function restore_wp_generator() {
    $linkedin_fix = '<meta name="generator" content="WordPress ' . get_bloginfo('version') . '"  />';
    echo $linkedin_fix;
    }
    add_action('wp_head', 'restore_wp_generator');

    if you don't want to let on to your version no. you can just use this to define the string

    $linkedin_fix = '<meta name="generator" content="WordPress"/>';

    either will make the Linkdin WordPress app work.

    -Gene

    Posted 4 years ago #
  3. Gene,

    Thanks for the input. I appreciate the quick reply.

    I'm not familiar with the architecture of WordPress or Thematic as I've just been a user. I put this in thematic/functions.php as a stand-alone function near the end of the file. It didn't seem to produce the correct effect.

    Where should this change be made? Should it be the contents of thematic_remove_generators() { function restore_wp_generator(){} }?

    Thanks,
    Andy

    Posted 4 years ago #
  4. Add all of this code to your childthemes's functions.php any where between the opening <?php and the closing ?>

    function restore_wp_generator() {
    $linkedin_fix = '<meta name="generator" content="WordPress ' . get_bloginfo('version') . '"  />';
    echo $linkedin_fix;
    }
    add_action('wp_head', 'restore_wp_generator');

    and that should do it

    -Gene

    Posted 4 years ago #
  5. lsnoei
    Member

    Hi "em hr", I'm trying to get my thematic into LinkedIn, just like axerickson. I pasted your code in my functions.php.
    This is my site: www.abeontwerp.nl, blogpart www.abeontwerp.nl/blog.
    When I paste http://www.abeontwerp.nl or http://www.abeontwerp.nl/blog into the LinkedIn app, nothing happens, not even an error appears. The enrtyfield just clears itself. Any idea what I am doing wrong? Thanks already

    Posted 4 years ago #
  6. moodle
    Member

    Hi Isnoei, I had the same problem but then I tried the Bloglink rather than the Wordpress application and that has worked fine (after pasting in the text as above). I suppose the only thing is you can't choose whether you want the link shown it will just show all.

    Posted 4 years ago #
  7. Sorry lsnoei,

    This one slipped by me but I have good news for everyone using Linkedin with Thematic. As of the current release version 0.9.6.2
    There is now a much simpler way to restore the generators.

    function child_show_generators() {
    	return FALSE;
    }
    add_filter('thematic_hide_generators','child_show_generators');

    Cheers,
    Gene

    Posted 4 years ago #
  8. Hi em hr

    I am having the same problem with my WordPress blog feed not displaying in my LinkedIn profile (using the WordPress application for LinkedIn). I have tried both functions above and neither seem to be working for me.

    WordPress version 2.9.1, Thematic version 0.9.5.1

    Any ideas?

    Posted 3 years ago #
  9. Hi, don't know what I did last time but this is working fine for me now.

    Cheers!

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.