daflekk

Kräftige Farben

Die Bilder sollten natürlich durch eigene Kunstwerke ausgetauscht werden.

Blocks: 5 (Main, Right, BigContent, BigFooter, None)
Menus: 2 (Main, None)
Login: full
Search: yes
responsive: yes
accessible: yes

Licence: Creative Commons Attribution Licence 3.0. You can modify and use this template, but read licence.txt first
Author: Design by Chio Maisriml, www.beesign.com
Description: Responsive Webdesign: For use with all modern browsers

» WBCE-Forum

» QR-Code


Check this template
with your smartphone!

» editor.css


» Simulate Javascript Error

Comments:

I gratefully use the Flecken template for my website 124Media.nl. Because I wanted to have a logo and as well as the title in the header, I made some changes in index.php. Now I get the desired result, but I think not in the correct way of coding. I hope You can help me to make the coding in the right way. Here is what i did:

<div class="wrapper">
<!-- 124 header-->
<div id="title">
<h1>
<a href="<?php echo WB_URL; ?>/" target="_top"><?php page_title('', '[WEBSITE_TITLE]'); ?></a></h1>
</div>
<?php if ( $isfrontpage == true ) {
include('flexslider.php');
} else {
echo '<div role="banner" class="header"><a href="'.WB_URL.'"><img class="logopic" src="'.TEMPLATE_DIR.'/img/logo.png" alt="" /></a></div>';
}
?>
<a aria-hidden="true" id="mobilemenu" href="javascript:showmenu();"><span>Menu</span></a>
<div class="topmenubar">
<?php if(FRONTEND_LOGIN) { include('login.inc.php'); } ?><!--LOGIN_URL, LOGOUT_URL,FORGOT_URL-->

Antworten

I think what you're looking for is to move the div.title inside of the if statement. You can do this by simply adding another echo with the HTML code for the title. Don't forget to change all <?php printed values to string concatentations with dots in between like you did for the logopic banner. You can find an example on: https://gist.github.com/robbertkooiman/b26ebbaf5404462ea11c0c479a83d0ab

Antworten

Hi Han, I do not understand your question or your issues, for me it looks right at the first glance.

Antworten

I was looking for a way to code the website title in the echo line as well as the logopic already is. I did not succeed because I am not a coding expert but I think it is the right way to do especially if I want to use the template (of one of its sisters) for other websites with maybe a flexslider included.