Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Title block (/showthread.php?t=8910)

Aichels April 4th, 2013 01:08 PM

Title block
 
Sorry to get back to you about same question, but I just now noticed that my title block is not showing, if you go to homepage and then click to next page.

Referring to this post /show...ighlight=title

Eric April 4th, 2013 02:04 PM

Hi,

That's because you mentioned you wanted it to appear on every page except the homepage.

To include the title on every page, including the homepage which has been paginated, change your code to this:

HTML Code:

<?php if ( is_dfr() && ( !is_dfr('home') || substr_count($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"], '/') > 1 ) ) : ?>
        <div id="pagetitle" class="row">
                <div class="grid_12">
                        <h1>
                                Shop
                        </h1>
                </div>
                <div class="clear"> </div>
        </div>
<?php endif; ?>

Eric

Aichels April 4th, 2013 02:31 PM

Sorry for not mentioning that.

Thank you now it's good. :)

Aichels April 10th, 2013 09:18 AM

Hi, unfortunately my title block is showing in blog and contacts page again.

I was changing my store page and homepage name for SEO reasons when I noticed that this block is double in contacts and blog. So I changed names back, but that block is still double. Code is still there exactly like you gave me. Can you please help me?

Eric April 10th, 2013 09:34 AM

Hi,

What template file is that code in?

Eric

Aichels April 10th, 2013 10:07 AM

title.php

Eric April 10th, 2013 10:18 AM

Hi,

I'm not sure why that wasn't working but this works:

HTML Code:

<?php if ( is_page(2606) && ( !is_dfr('home') || substr_count($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"], '/') > 1 ) ) : ?>
        <div id="pagetitle" class="row">
                <div class="grid_12">
                        <h1>
                                Shop
                        </h1>
                </div>
                <div class="clear"> </div>
        </div>
<?php endif; ?>

2606 is the ID for your "Store" page.

Eric

Aichels April 10th, 2013 10:25 AM

Awesome quick fix.

Thank you.

Aichels May 3rd, 2013 03:38 AM

Hi,

I'm trying to add this Title block different page I created. How do I do it? I was trying by just adding another page id - didn't work. Then I tried copy all code and add page id and still nothing.

Is there something that I'm missing?

Aichels May 3rd, 2013 04:28 AM

Sorry, I got it sorted. That was theme settings conflict.


All times are GMT -5. The time now is 01:15 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.