New Rainbow theme

Ask questions about FlatPress themes, present your themes, request new themes.
User avatar
WineMan
Posts: 107
Joined: Tue Sep 01, 2020 5:03 pm

Re: New Rainbow theme

Post by WineMan » Tue Jun 27, 2023 7:39 pm

I would like it to the right of the title as shown in the attached screenshot. However I think I will have other problems due to the Subscribers module I have added. I can perhaps fix that on m own however.
header.jpg
header.jpg (22.71 KiB) Viewed 5774 times

User avatar
DeltaLima
Posts: 16
Joined: Mon Jun 19, 2023 2:04 pm

Re: New Rainbow theme

Post by DeltaLima » Wed Jun 28, 2023 5:21 pm

Here you go, i hacked it shortly together.

Image

header.tpl

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>{$flatpress.title|tag:wp_title:'&laquo;'}</title>
	<meta http-equiv="Content-Type" content="text/html; charset={$flatpress.CHARSET}" />
	{action hook=wp_head}
</head>

<body>
	<div id="body-container">
		<div id="head">
			<div id="head-bubble">
				<div id="title-container">
					<a href="{$flatpress.WWW}index.php/welcome">
					<h1>{$flatpress.TITLE}</h1>
					<p class="subtitle">{$flatpress.SUBTITLE}</p></a>
				</div>

<!-- SEARCH START -->
				<div id="search-container" style="float: right; margin: 5px 15px;">
					<form method="get" action="http://192.168.34.11/blog/search.php">
					<input type="hidden" name="stype" value="full" /><input type="text" name="q" /><input name="search" type="submit" value="Search" /> 
					</form>
				</div>
<!-- SEARCH END -->


<!--				<div id="logo-container">
					<img id="logo-img" src="{'rainbow'|theme_geturl}imgs/flatpress-logo-solo.svg">
				</div>
-->
				<div id="clear-container"></div>
			</div>
		</div>
	<hr />
<div id="outer-container">
As you see i commented out the logo, that didnt looked pretty well with it in there :)

Additionally you have to set the weight larger then the default in red/common.css:

Code: Select all

/* ===== HEAD ===== */
#head {
        /*background: url("../imgs/logo.jpg") no-repeat;*/
        width: 840px; !important;
        width: 840px;
        height: 128px;
        font-family: Tahoma, sans-serif;
        float: center;
}
I had to set it to at least 840px to not break up the header. If you like, you can also set it as relative value, like 99% or so :)
Attachments
Bildschirmfoto vom 2023-06-28 19-23-12.png
Bildschirmfoto vom 2023-06-28 19-23-12.png (110.12 KiB) Viewed 5764 times

User avatar
WineMan
Posts: 107
Joined: Tue Sep 01, 2020 5:03 pm

Re: New Rainbow theme

Post by WineMan » Thu Jun 29, 2023 1:29 am

I appreciate your help in trying to set up the theme for me, but evidently I have made more tweaks to the theme I am using because even with your changes, the Subscribers module does not display properly and as I mentioned in an earlier post, I can't access the admin module after trying to use your theme.

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests