SimplePortal
Support => English Support => Topic started by: Mulwa on June 07, 2014, 04:25:13 PM
-
hi friends!
Please i need a help on how i can center those articles that are displayed in the article block. You know that it is aligned to té left hand side, but i want it to be centered. And also if possible i would like to remove those small boxes that a placed at the left side of the article's link in the block. Thanks
-
The centering you can do with some CSS.
This, you can find using "F12" developers tools in your browser.
This will help you figure out where you can apply some CSS.
You can even use the "custom style" option in the block editor to add some custom CSS directly.
As for removing stuff from the blocks, you can find them in PortalBlocks.php.
There, you can find and remove any bit of code you do not want.
Do you know how to begin?
-
Thank you @Angelina, but i don't really know how to begin with it, pls help.
-
Wait -- have you tried using the custom block styles yet?
http://simpleportal.net/index.php?action=docs;area=block_editor
-
I corrected that. Thanks a lot. I have centered the text. But got a problem when i removed the icons that it used to display before the clickable links, i found another text "Topic" before the clickable link. Pls if possible let the "Topic" which is unclickable be removed or if there is anyway you can figure it out for me that i may edit it, thank you
-
PortalBlocks.php contains all the source code, for your customization.
Portal.css contains all the css.
You can target this with display:hidden, or you can remove it from the pho. Have a look through the code and see what you are most comfortable with.
You are in the land of customization now!
-
okay, am gonna try figuring that out
-
okay that one never worked for me, though i couldn't trace it out, i found where the codes (< img alt="topic" arc=".../topic.png") are using firebug but it was difficult to delete it and i couldn't trace it in the html code. i deleted all "[ 'topic' ] from portalblocks.php but still it displays it again both in the article and recent topics block.
And if possible i would like to put the articles in tags. Like this >>>how to install simple portal in smf<<<. Pls don't be weard of me. Thank you
-
You need to be sure to delete it also from where the HTML is being written, in the "echo" statement.
Any chants you wish to make to the output is made in this part of the block.