The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Move Twitter Button to Post Footer

3 posters

Page 2 of 2 Previous  1, 2

Go down

Solved Move Twitter Button to Post Footer

Post by FrOsTyXi Thu 28 May - 23:24

First topic message reminder :

Hello, I am using this code to move my Facebook like button to the post footer

Code:
    $(function() {
        $("body").after("<style>.postmain iframe {margin-top: -25px !important; padding-bottom: 10px !important; padding-left: 10px !important;}</style>");
        $("p.crumbs iframe").detach().insertAfter('.post:eq(0) .postfoot');
    });

I would like to put the Twitter button and counter in the same place but on the right side
Example in this image:
Move Twitter Button to Post Footer - Page 2 Captur29

punbb

Forum Link: TPSN

Thank you in advance!

Regards
FrOsTyXi


Last edited by FrOsTyXi on Wed 3 Jun - 14:56; edited 1 time in total
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down


Solved Re: Move Twitter Button to Post Footer

Post by FrOsTyXi Wed 3 Jun - 14:39

@JScript that puts the button back in default location, did not know this would be so hard I can not even move it with CSS it just disappears

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Move Twitter Button to Post Footer

Post by FrOsTyXi Wed 3 Jun - 14:44

@JScript sorry for double posting but I found a solution!

Code:
$(function() {
        $("body").after("<style>.postmain iframe {margin-top: -25px !important; padding-bottom: 10px !important; padding-left: 10px !important;}</style>");
        $("#twitter_btn").detach().insertAfter('.post:eq(0) .postfoot');
    });

Result
Move Twitter Button to Post Footer - Page 2 Captur13

Regards
FrOsTyXi

SOLVED!
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Move Twitter Button to Post Footer

Post by JScript Wed 3 Jun - 14:46

@FrOsTyXi
I do not know how well you're doing, but when I run the code the result is this:
Move Twitter Button to Post Footer - Page 2 VWxt6Vd

Code -> placement in the topics:
Code:

$(window).load(function() {
   var oFoot = $('.postmain:first')
   $('#twitter_btn').detach().appendTo(oFoot);
});

Edit:
Interestingly, this post https://help.forumotion.com/t140916-move-twitter-button-to-post-footer#960049 you wanted the twitter button after the like button!

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Move Twitter Button to Post Footer

Post by FrOsTyXi Wed 3 Jun - 14:51

@JScript I have it set for topics only but when I add that code the button goes back to defaullt location, I do not know why it does that. With this code and thanks to you it is working correctly!

Code:
$(function() {
        $("body").after("<style>.postmain iframe {margin-top: -25px !important; padding-bottom: 10px !important; padding-left: 10px !important;}</style>");
        $("#twitter_btn").detach().insertAfter('.post:eq(0) .postfoot');
    });

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Move Twitter Button to Post Footer

Post by SLGray Wed 3 Jun - 19:37

Is this solved now?


Move Twitter Button to Post Footer - Page 2 Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Move Twitter Button to Post Footer

Post by FrOsTyXi Wed 3 Jun - 19:39

@SLGray Yes it sure is.
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Move Twitter Button to Post Footer

Post by SLGray Wed 3 Jun - 19:39

Topic solved and archived


Move Twitter Button to Post Footer - Page 2 Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum