Jump to content


Photo

Twitter Bar Content Floating Right In Header


This topic has been archived. This means that you cannot reply to this topic.
19 replies to this topic

#1 rsutton1223

rsutton1223

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 17 November 2010 - 06:39 PM

I really like the styling of the Twitter bar included with Pagelines Platform Pro. Is there any easy way I can have that same styling displaying my latest tweet easily in the header floating right where the icons usually are?

#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 17 November 2010 - 07:07 PM

Start by making sure you are using the platformbase theme for customizing, then I'll show you how to do it with a hook

#3 rsutton1223

rsutton1223

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 17 November 2010 - 07:09 PM

I am using the platformbase theme.

#4 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 17 November 2010 - 07:19 PM

add this to your functions.php file ` add_action('pagelines_before_branding_icons', 'twitter_spot'); function twitter_spot(){?>

#5 rsutton1223

rsutton1223

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 17 November 2010 - 07:42 PM

Ok I added that and it still isn't showing. What do I need to do?

#6 rsutton1223

rsutton1223

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 17 November 2010 - 08:49 PM

Actually...when I add that code to the functions.php file it breaks everything below it. On the page...nothing loads past where the Twitter bar should show up.

#7 webmachiavelli

webmachiavelli

    Advanced Member

  • Members
  • PipPipPip
  • 57 posts

Posted 18 November 2010 - 02:52 AM

You do know you are putting Twitter to use incorrectly in your content management right? Instead of having twitter post on your website you should be using twitter to disperse when you update your website.

#8 rsutton1223

rsutton1223

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 18 November 2010 - 03:08 AM

Displaying active tweets on your website converts into more followers by showing that you are active within that social media space. Otherwise, readers that did not land on your page from twitter might not know you are active there. It just takes it one step further than displaying an icon in an area of the site that is not currently being used. You then have your feed update on Twitter to pull followers back to your content.

#9 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 18 November 2010 - 01:39 PM

Forwarding for continued developer help. Thanks, Bryan

#10 rsutton1223

rsutton1223

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 19 November 2010 - 12:12 PM

Thanks Bryan. Any word?

#11 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 19 November 2010 - 01:12 PM

Sent again, we've gotten quite busy with the PlatformPro launch. Thanks, Bryan

#12 nett-ed

nett-ed

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 19 November 2010 - 07:01 PM

Try this instead: http://pastebin.com/axnA44fg A little modification to what was posted earlier without the hook registration.

#13 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 19 November 2010 - 07:17 PM

i did test the code before posting, so it's likely a problem with where you pasted? Put it above this line `function base_sections(){`

#14 rsutton1223

rsutton1223

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 19 November 2010 - 10:03 PM

It is still breaking everything from that point down.

#15 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 20 November 2010 - 07:49 AM

Robb,

Since you have to use the "Twitter for Wordpress" plugin anyways, you may as well just use the plugins php code.

Simply change the username in the code below and place this php call where you want:
 <?php twitter_messages("meggmusic"); ?>

I you want to stylize the text, simply put a div around it.

#16 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 22 November 2010 - 08:02 PM

Robb, how you doing with this? Can we get a link to your site?

#17 rsutton1223

rsutton1223

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 24 November 2010 - 03:29 AM

http://www.blogginglabs.com/ I haven't done anything since the code broke everything below it.

#18 onlinetracker

onlinetracker

    Super Member

  • Members

  • 154 posts

Posted 24 November 2010 - 07:59 AM

Okay, this almost works... it displays the content and has the divs, but I can't find the spot to grey out the background full width. ` add_action('pagelines_before_branding_icons', 'twitter_spot'); function twitter_spot(){?>

#19 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 24 November 2010 - 03:40 PM

Forwarded to developers. Thanks, Bryan

#20 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 24 November 2010 - 10:38 PM

Depending on what setup you have it may change but this CSS sets me up inline with the logo and left of the icons ` .tbubble { float:right; position:relative; top:23px; width:480px; } ` Also, you don't need the texture, content, or content-pad divs to be wrapping the code.