Custom HTML in every txt

Post Reply
User avatar
Powerack
Ssr. Bludit
Posts: 12
Joined: Sat Jul 31, 2021 8:00 pm
Location: Prague
Contact:

Hello,

I tried to find suitable place where to put my custom styled borders. I want to include in every newly created page / post index.txt file, but for now I'm doing styling manually.

Code I need include:

Code: Select all

<div class="box orange verydarkbg bsh">
	<div class="boxcontent mid lblue">
		<!-- SOME 
		CONTENT 
		ON 
		THE 
		PAGE -->
	</div>
</div>
I using my style.css for almost every project I ever did (WP sites, pure HTML pages) and just edit few bits in it for that projects. I also overwriting bootstrap classes and ignoring that "stupid thing" by using my own.

I don't want restyle ALL pages since I have other plans with it, just newly created. So where I put that few lines of code to work it properly? If you ever visit my web, you understand better my styling. It's bit complicated just to write what exactly I need.

Thanks for fast responses :-)
Working on powerack.cz | Bludit 3.14.1 & extremely modified Blog X
I am guy. Don't think about my profile image too much.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Powerack wrote: Tue Aug 10, 2021 1:07 am

Code: Select all

<div class="box orange verydarkbg bsh">
	<div class="boxcontent mid lblue">
		<!-- SOME 
		CONTENT 
		ON 
		THE 
		PAGE -->
	</div>
</div>
Does this include the whole content (page or post) or just a part of it?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Powerack
Ssr. Bludit
Posts: 12
Joined: Sat Jul 31, 2021 8:00 pm
Location: Prague
Contact:

In static pages no, I framed just parts of content (highlight text), but in posts I like to frame everything except header with these two pairs of <DIV> tag.

Example: http://prntscr.com/1mx7c7s Orange border, light blue text, align to center - all specified in CSS, just as you may recognize from code above. I styling static pages differently and manually, so this is really for posts.
Working on powerack.cz | Bludit 3.14.1 & extremely modified Blog X
I am guy. Don't think about my profile image too much.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

You can add the code to the the template home.php and add a template for posts or add if conditions with the code to the template page.php.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply