WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Twitter (Jetpack) (8 posts)

  1. info@renedelabre.com
    Member
    Posted 1 year ago #

    Is there anyway to...

    1. Remove the hyperlink on the widget 'Title'

    2. Force a line break between tweets and the date stamp, and then another between posts

    3. Place static text before hyperlinked 'Follow Link'

    http://wordpress.org/extend/plugins/jetpack/

  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hi!

    1. The easiest way to do that would be through CSS: target the widget title and remove the link styling and the hover styling on it. Another way is to edit the plugin file here:

    http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/widgets/twitter.php#L74

    2. You can do that with CSS, by adding some margin or padding to the bottom of each Tweet, for example

    3. Which Follow Link? You mean, the Twitter Follow button? The easiest way would be to modify the plugin file, here:

    http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/widgets/twitter.php#L152

    right between the first ?> and the <a href="http://twitter.com/

    Remember, if you edit the plugin file your changes will be overwritten the next time you update.

    Hope that helped!

  3. info@renedelabre.com
    Member
    Posted 1 year ago #

    Thank you Richard!

    Managed to adjust the plugin file for no. 1 and 3, job done. Perfect! I'll just have to rewrite when I update...

    The reason I took this route was mainly because I'm not sure what I'm referencing in the CSS. My CSS is worse than my HTML, and my PHP nearly none existent. Sorry...

    I should be able to unpick it however with a little guidance.

    Firstly, is it my site CSS you are referring to? Or is there a specific plugin CSS file I need to amend? If it's the later what do I need to reference? Hope that makes sense.

    Thanks in advance!

  4. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hi!

    Well, I can help you out with the CSS but I'll need a link to your site for that. And yes, it's your site's CSS, the widget can use it.

  5. info@renedelabre.com
    Member
    Posted 1 year ago #

    Hi Richard,

    My site is http://renedelabre.com.

    I've tried everything in the sidebar CSS on my site to no avail...

    Any pointers you can give me would be most appreciated.

    Best.

  6. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hi!

    I see that you tried to add something using Jetpack's Custom CSS. You almost have it; I'd do something like this instead:

    .widget_twitter li {
    margin-top: 10px;
    margin-bottom: 10px;
    }

    You can of course change the amounts to whatever you want.

    However, I hadn't noticed that you also want to force a line-break bwteeen the tweet and the timestamp. You won't be able to do that in CSS, you'd again have to edit the plugin file, here:

    http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/widgets/twitter.php#L133

    Let me know how that goes for you!

  7. info@renedelabre.com
    Member
    Posted 1 year ago #

    Spot on! That did the job perfectly. Thank you very much for your time and guidance.

    Please let me know if there is somewhere I can donate to in recognition of your ongoing development of this plugin, and continued support of WordPress.

    Best,

    Rene

    PS. I'd buy you a pint if you weren't the wrong side of the water. Cheers anyway! ;-)

  8. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Ha! Just doing my job, friend! I'll have a pint with your name on it tonight, then :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic