Support Forum
Greetings..
I am working on a site with a one column simple press page.
I was looking in the theme editor at the css and default files but didn't notice where the left column width settings were. Just want to widen the left column about 20 pixels or so.
Simple Press is working great for me. Received a few comments about what board software it was and sent em over here.
This site is getting some decent traffic.. Just fiddling with the theme and sp.
Thanks for all your help.
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
What you would do is change the width in the templates file for a particular view.
For example, If you are using the default theme and want to change the width of the left column of the topic view you would edit the spTopicView.php file.
In it you would see:
# Column 1 of the post row # ---------------------------------------------------------------------- sp_ColumnStart('tagClass=spUserSection spLeft&width=15%&height=50px');
and
# Column 2 of the post row # ---------------------------------------------------------------------- sp_ColumnStart('tagClass=spPostSection spRight&width=84%');
You could add a couple of percent to the 1st row (the left one). Where it says 'width=15%' and then subtract the same difference from the column 2 right side.
If you have not done so yet we recommend you create your own SP theme. That way future updates don't overwrite your changes.
Thanks Brandon..
Another quick question. I want to add the Google language translation widget code to the forum. Other than putting it on the forum page itself, is there a way to put in the sp header or elsewhere where a guest from another country can translate the pages?
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
It's just a small code snippet. I have it in a text widget on the blog, but don't want a sidebar on the forum page.
Don't see how you guys paste code so neatly, hope this is OK.
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
find where you do want it and add it to one of your sp page templates... if you want it on every forum page, I would suggest somewhere in spHead.php...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)