SimplePortal

Support => English Support => Topic started by: Mulwa on June 07, 2014, 04:25:13 PM

Title: how can i center articles in my articles block?
Post 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
Title: Re: how can i center articles in my articles block?
Post by: AngelinaBelle on June 12, 2014, 02:15:43 PM
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?
Title: Re: how can i center articles in my articles block?
Post by: Mulwa on June 14, 2014, 06:58:38 AM
Thank you @Angelina, but i don't really know how to begin with it, pls help.
Title: Re: how can i center articles in my articles block?
Post by: AngelinaBelle on June 26, 2014, 03:46:43 PM
Wait -- have you tried using the custom block styles yet?

http://simpleportal.net/index.php?action=docs;area=block_editor
Title: Re: how can i center articles in my articles block?
Post by: Mulwa on June 27, 2014, 12:11:54 PM
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
Title: Re: how can i center articles in my articles block?
Post by: AngelinaBelle on June 27, 2014, 12:44:50 PM
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!
Title: Re: how can i center articles in my articles block?
Post by: Mulwa on June 27, 2014, 01:53:06 PM
okay, am gonna try figuring that out
Title: Re: how can i center articles in my articles block?
Post by: Mulwa on June 28, 2014, 03:37:28 AM
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
Title: Re: how can i center articles in my articles block?
Post by: AngelinaBelle on June 29, 2014, 09:36:17 PM
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.
SimplePortal 2.3.8 © 2008-2024, SimplePortal