February 4, 2013 at 7:34 am #17820
Would be great if someone could help me with this.
My post is too long so I set up the nextpage links thing to break it up. The problem is that the pagination buttons are hidden under social media buttons and rating stars so are not immediately visible.
Here is the post:
I want the pagination buttons to appear immediately after the text and in an immediately visible position so readers click to the next page and keep reading.
If anyone could help me with this I would be very thankful.
BenFebruary 4, 2013 at 9:16 am #17850February 4, 2013 at 5:01 pm #18066
Okay, cool. But how do I do that?
Also, while the facebook like and rating buttons are plugins, the share buttons aren’t. They came with the theme.
Is it complicated? Should I be paying someone to change it for me?
Would I send them the code for the plugins and ask them to alter it for me? What about the share buttons?
Look forward to hearing from you.
BenFebruary 4, 2013 at 5:23 pm #18076
The News theme doesn’t come with share buttons at the bottom of the post. It does have icons to build menu links in the secondary navbar.
If the plugins don’t have some sort of template tag that you can manually place then you’ll need to contact the plugins’ developers to see if there is something you can do about getting them below all of the post content.
A work around my be to increase the font size to make them more prominent. Maybe add a background.
February 4, 2013 at 6:19 pm #18098
Oh, you’re right.
I just realised the share buttons came with the Jetpack plugin a guy told me to install. The rating buttons come from a Rating-Widget plugin and the facebook like button comes from the FBLike Button plugin I installed.
How does one place a template tag?
I can go to the edit plugins for each plugin and alter the php, but what code do I look for and how do I alter it?
Thanks for all your help Sozo!
BenFebruary 4, 2013 at 6:21 pm #18099
The alternative of making the font size more prominent is a great idea, but how do I do that?
Can I do it with a simple CSS alteration or do I need to get into the backend of my host provider and alter some php file?
BenFebruary 5, 2013 at 11:44 am #18245February 5, 2013 at 6:27 pm #18347
Still doesn’t cut it for me though.
Think I might have to contact the plugins developers as you suggest. You sure that there isn’t anything that could be done to the theme’s php code or anything?
BenFebruary 5, 2013 at 7:53 pm #18355
My brain hurts!!!! I already knew how to get the Jetpack share buttons to appear at the top of the posts and then I saw this posting. Again, my brain hurts! I found this…. so to keep you from having to figure it all out – I wrote out the instructions and they do work. I did it on my demo site.
Go to Plugins > Editor
At the top right, click the drop down arrow and select Jetpack by WordPress.com
On the right you will see the plugin files. Look for jetpack/modules/sharedaddy.php – click it.
Then look for jetpack/modules/sharedaddy/sharing-service.php and click it.
On the main screen – scroll all the way to the very bottom and look for the following code and DELETE them – then save:
add_filter( ‘the_excerpt’, ‘sharing_display’, 19 ); add_filter( ‘the_content’, ‘sharing_display’, 19 );
Install and activate the Genesis Simple Hooks Plugin
Then go to Genesis > Genesis Simple Hooks on the menu
Look for genesis_before_comments under the Comment List Hooks
Put this in that box:
<!–?php echo sharing_display(); ?–>
Click the Execute PHP on this hook box then Save your changes
The share buttons are now above the comments and your Pages are above the Share buttons.
I repeat, my brain hurts! LMBO!February 5, 2013 at 8:32 pm #18365
Ha ha ha
Firstly, thanks so much for taking the time to put this together for me anitac!
My brain hurts too!
Sadly, yours might end up doing so again when you hear this.
I have done as you instructed – word for word, step by step I swear. Everything appeared as you said it would as I did as you instructed… only, well, the share buttons have disappeared. They are neither under or above the page numbers:
When I put the code back in jetpack/modules/sharedaddy/sharing-service.php the share buttons reappear, but unfortunately still above the page buttons
Is there perhaps one small step you didn’t mention, or… is there perhaps some setting I may need to switch on or off?
Help me anitac, you’re my only hope
BenFebruary 5, 2013 at 8:41 pm #18367
One reason it might not have worked is because I’m using Disqus instead of the ordinary comments box.
Also, I just realised. If it had worked, would it not have appeared above the comments box but below the After Post Ad?
My brain just keeps on hurting
BenFebruary 5, 2013 at 8:50 pm #18369
I think because you are using Disqus – it’s not recognizing that I had in there to place it above the comment section. So let’s try this – go to Genesis Simple Hooks, remove it from where you added it and then locate this box – genesis_after_post_content and place the code there. Let’s see what happens.February 5, 2013 at 8:57 pm #18370
No luck I’m afraid.
Did i need to tick the box for this:
genesis_post_meta()function from this hook?
Should I try the
BenFebruary 5, 2013 at 9:00 pm #18371
You did go back and remove those two lines right? Make sure you remove those. If you aren’t married to the share buttons being at the bottom – remove that one line of code and place it in the genesis_before_post_content and they will appear at the top under the Title & Meta.February 6, 2013 at 3:31 am #18403
The “issue” here is – I wouldn’t say it’s an issue since it’s regular WordPress & Genesis behavior – that plugins just hook into “the_content” action hook, WordPress provides and place in their stuff. If you use this with lots of plugins things can go out of control, i.e. the get stuffed at the end of your content section or anywhere in between…
To achieve what you want – if I understood correctly – is, to place anything for sharing etc. but after the in-page pagination links, right?
I’ve just tested this myself with some custom HTML code in combination with a Genesis hook, and worked like a charm for me
Here’s my code snippet:
You should place this in your child theme’s functions.php — at the bottom, and without the opening “< ? php"!
As is it does nothing, as I commented out the two examples for custom content: remove the 2 slashes to un-comment and use either line of them. The first line with "echo" is for placing HTML code, for example from external services. The second "echo" line is echoing a function, for example from a plugin. You have to change both appearances of "function_name_here" to the actual template function from the plugin. And also uncomment the 2 slashes before the "echo".
I'd suggest to NOT use "Simple Hooks" plugin here, as in Simple Hooks no priority could be set up.
With my function, you can change the priority at any time, if needed, like so:
add_action( 'genesis_post_content', 'ddw_custom_content_after_pagination', 11 );
—> lower priority
add_action( 'genesis_post_content', 'ddw_custom_content_after_pagination', 9 );
—> higher priority
Before you use this way here, make a BACKUP of your functions.php file! Also, make sure that no other code snippets in Simple Hooks are placed in “genesis_post_content” hook. If so, please make a backup of them and remove them before continuing.
Hope that helps, Dave
You must be logged in to reply to this topic.