Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking to override some css #673

Closed
ZachBacon opened this issue Jan 15, 2024 · 7 comments
Closed

Looking to override some css #673

ZachBacon opened this issue Jan 15, 2024 · 7 comments

Comments

@ZachBacon
Copy link

So I'm basically porting a phpbb theme (prosilverdark) to htmly, and I have some minor success, but when it comes to loading posts, I'm having trouble overriding certain css elements. From what I've seen, it's done via systems/includes/functions.php But I rather not edit system files just to apply my style.

@danpros
Copy link
Owner

danpros commented Jan 15, 2024

Hello,

Can you give an example, what kind of HTML structure do you want to achieve?

@ZachBacon
Copy link
Author

ideally I'd like to stylize the contents of well... content(), as it stands it's overriding the current style I'm trying to adapt. I'm trying to make it look like for example like this https://board.visualboyadvance-m.org/viewtopic.php?t=816

But it's ending up more like this instead.
Screenshot 2024-01-15 124614

Mind you I'm not going for a full one on one full on copy, but it's not exactly taking on the css values I have.

@danpros
Copy link
Owner

danpros commented Jan 16, 2024

The content() in layout.html.php is out putting the content html code generated from the template files, like main.html.php (post collection page/category, tags etc.), single post file (post.html.php), static.html.php and so on. So no need to modify the core.

@ZachBacon
Copy link
Author

Gotcha, thanks for letting me know.

@danpros
Copy link
Owner

danpros commented Jan 16, 2024

You're welcome. We need an improved docs, current docs is like for version below 2.7.

@ZachBacon
Copy link
Author

I noticed, which is why I've been looking at existing templates and through git history to get some clues, but thank you for providing the biggest clue.

@danpros
Copy link
Owner

danpros commented Mar 2, 2024

I will mark it as fixed. Thanks

@danpros danpros closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants