ipt-knowledgebase-theme-wp
ipt-knowledgebase-theme-wp copied to clipboard
Easy way bbpress => last comments
Would there be easy way to display last WP comments under the forum-like section at the bottom of front page (without having bbpress installed and implemented)?
I don't think it would be possible without writing out your own plugin.
Thank you. I think I managed it with some php code and no plugin.
On the plus side, I am using another plugin of yours I really likw (WP Feedback & Survey Manager) Are you planing on updating it soon so all functions can work under the new WP versions?
//THANKS
WP Feedback & Survey Manager is actually deprecated long ago. I do have plans to make a lite and free version of eForm though. You can see the pro version and buy if you like :) https://iptms.co/geteform
Thanks. I think I figured it out with some modifications. Now, where can I shorten the title of articles showing on front page I'd like everything to be equal length and right now longer titles are hanging over the 2nd line //THANKS
That's a styling issue.
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
Actually my question was about php trim on and more specifically in which template file to trim the_title to so many characters so it will show shorter on the front page widgets. Thanks!
That depends on what of post/page you would like to have this effect on.
If this is still the homepage like you mentioned, it would probably be the front-page.php
-file.
Otherwise, it would be a custom file, which has its value set in the currently set "homepage"-page, a singular
page, or an archive
page.
This could help finding it in that case: WP Template Hiearchy
Edit:
In case of this theme, it's probably the content-single.php
or single.php
file where you can find your destiny. (I've kinda been out of WP lately.)
My first comment is still valid tho', you're hurting your SEO by outputting it like this programmatically, via eg.
substring(the_title(),0,30)
I'd do it like this atstyle.css
for a better example:.entry-header.page-header > .page-title { display: inline-block; (max-)width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
Thanks The styling proposed did not do the trick. This particular theme does not follow front-page.php structure and has one. It uses boot strap from where it is hard to locate specifically which file calls the category widget titles. If we know that it will be easy to substring the titles