Support Forum

Not enough space in the toolbar above each post

U
Member

Hello,

I’m not sure if that’s a “General” problem or a “Theme” problem, so please feel free to move my topic to the appropriate forum if it doesn’t belong here.

This is what I get because I use the Stars instead of Thumbs Up/Down (I really like it to remain that way): hover.jpg

As you can see the “Thanks” button and the “Flag” button are hovering because there’s not enough space. Worse, when they hover this way, they are clickable only in Google Chrome but not in FireFox (confirmed by my users). I currently don’t have the time to properly test it on other browsers.

For now, I fixed the problem by shortening “September” to “Sep” via Options -> Content settings, but on the other hand, I have stuff I don’t need, like the “Print this post” icon. Is there an easy way to get rid of it? Thanks

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

The bottom line is always the column width that your WP theme allows for the content…. 

To change this – i.e.,remove bits you do not want etc., you need to edit one of the Simple:Press theme templates. That looks like you are using our Reboot theme so the template in question would be in the /templates folder of the theme at /desktop/spTopicViewDesktop.php.

At line 164 (on the most recent version) you will find the comment # Start the ‘post’ section –  and that specific opening section ends on line  195 with the section end function call.

Within those two lines of code are all of the possible items that may display in that post action bar. The print item – for example – is the function sp_PostIndexPrint().

Items that start with the if ‘function_exists’ call are all items from Simple:Press plugins. With luck, all of the template function tags used are relatively easy to understand from their name. Just comment out the ones you want to remove by putting a # symbol at the front of the line.

As always we recommend the use of a child theme to ensure changes are not lost when upgrading. There are now Child Theme Frameworks available to download for all of our themes to make this simple and full and extensive details can be found on our Codex – Creating a Child Theme page: https://simple-press.com/documentation/codex/themes/theme-basics/creating-a-child-theme/

Hope that helps you get started. Just in case you do not know you can make this edit using our theme editor option from your forum admin > themes section. Or – if you prefer a proper editor ensure it is in plain text mode.

U
Member

Thanks a lot, that was quick and easy. Together with shortening the name of the month as I described above, this solves my problem.