Datafeedr Support Forums

Datafeedr Support Forums (http://www.datafeedr.com/forums/index.php)
-   Tips, Tricks & Tutorials (http://www.datafeedr.com/forums/forumdisplay.php?f=66)
-   -   Removing the page title "Store" from your store pages (http://www.datafeedr.com/forums/showthread.php?t=3512)

Eric January 4th, 2011 02:09 PM

Removing the page title "Store" from your store pages
 
If you want to remove the word "Store" which appears at the top of all of your store's pages, here's how to do so. These instructions are for WordPress's default theme "TwentyTen". All themes are different so you may have to modify these instructions to get it to work for you.

Usually, this edit takes place in the page.php file, but in some themes, you might have to make this change in the index.php file.

1. Open /wp-content/themes/twentyten/page.php

2. Look for the following lines:
PHP Code:

                    <?php if ( is_front_page() ) { ?>
                        <h2 class="entry-title"><?php the_title(); ?></h2>
                    <?php } else { ?>
                        <h1 class="entry-title"><?php the_title(); ?></h1>
                    <?php ?>

3. Replace the above lines with the following lines:
PHP Code:

                    <?php if (!is_dfr()) : ?>
                        <?php if ( is_front_page() ) { ?>
                            <h2 class="entry-title"><?php the_title(); ?></h2>
                        <?php } else { ?>
                            <h1 class="entry-title"><?php the_title(); ?></h1>
                        <?php ?>
                    <?php endif; ?>

4. Save and close the file.

Basically, you are just adding a conditional statement that says, 'If you are not viewing a store page, show the page title'.

Further usage of the is_dfr() function include:

PHP Code:

<?php if (!is_dfr()) : ?>This is NOT a Datafeedr page.<?php endif; ?>

PHP Code:

<?php if (is_dfr()) : ?>This IS a Datafeedr page.<?php endif; ?>

PHP Code:

<?php if (!is_dfr()) : ?>
    This is NOT a Datafeedr page.
<?php else : ?>    
    This IS a Datafeedr page.
<?php endif; ?>

UPDATE: We've posted an alternate method in a video: http://www.datafeedr.com/videos?vide...rc=yt#videotop

littlerhody January 9th, 2011 11:26 AM

HI,
I have this same exact template you are using in this demo and I change exactly everything as shown and get fatal errors on that page.php. I tried it 3 times just to be sure I did not do something room and got the same results .

I am using Twenty Ten 1.1

I replace the exact code in the demo with this
<?php if (!is_dfr()) : ?>
<?php if ( is_front_page() ) { ?>
<h2 class="entry-title"><?php the_title(); ?></h2>
<?php } else { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
<?php endif; ?>

Any ideas why this is happening?

Thanks,
JIm

Eric January 9th, 2011 11:28 AM

Can you post the entire contents of your page.php here?

badm00n January 12th, 2011 05:06 PM

I believe your endif statment has a ; at the end.

Eric January 12th, 2011 05:10 PM

Quote:

Originally Posted by badm00n (Post 16557)
I believe your endif statment has a ; at the end.

endif's are supposed to have a semi-colon at the end. http://php.net/manual/en/control-str...ive-syntax.php

Mutiny92 February 20th, 2011 12:16 AM

I am using Atahualpa and there is no page.php. There is an index.php, but that code snippet is not there. I am missing it somewhere, but darned if I can find it! Any ideas where to look?

Eric February 20th, 2011 09:51 AM

It seems you need to edit the bfa_post_headline() function but I'm not sure if you can override that function with a custom function...

Mutiny92 February 20th, 2011 04:04 PM

thanks Eric - I will give it a shot

parkerproject May 7th, 2011 09:19 AM

you can actually find that piece of code in this file: loop-page.php

pagerankone May 28th, 2011 07:11 PM

Suffusion
 
Hi all

Anyone knows where to remove the word "Store" from the Suffusion theme?

Went through all php pages without luck.

Thank you

Wade

Eric May 28th, 2011 10:16 PM

It appears that Suffusion has written a lot of their own functions that replace the core WP functions. You will probably have to write a custom function to accomplish this but I'm unfamiliar with that theme so you might have to ask the Suffusion team.

tomsunde July 29th, 2011 05:14 PM

I am using the "Profits" theme and would appreciate help on removing the word "store".
Thanks, Tom
Personalize Your Checks!

Eric July 29th, 2011 10:50 PM

Quote:

Originally Posted by tomsunde (Post 22541)
I am using the "Profits" theme and would appreciate help on removing the word "store".
Thanks, Tom
Personalize Your Checks!

It's hard to say as that theme is a premium theme and we don't have access to it. I would ask the theme developers that you bought the theme from how you can apply the instructions from the first post in this thread.

jdrom August 25th, 2011 03:49 AM

Code Found in Different File
 
If using the latest version of Theme Twentyten, the code you must change is not found in Index.php or page.php. It is found inside the Loop-page.php file.

Eric August 25th, 2011 06:54 AM

Quote:

Originally Posted by jdrom (Post 23223)
If using the latest version of Theme Twentyten, the code you must change is not found in Index.php or page.php. It is found inside the Loop-page.php file.

Thanks for the tip but do you mean the theme Twenty Eleven?

doggybiz September 12th, 2011 10:18 AM

An easy way to do this is to choose the 'page with no title' option under 'Page Attributes' when you edit the page. No code hacks :)

Eric September 12th, 2011 10:23 AM

Quote:

Originally Posted by doggybiz (Post 23662)
An easy way to do this is to choose the 'page with no title' option under 'Page Attributes' when you edit the page. No code hacks :)

I don't see that option:


doggybiz September 13th, 2011 05:53 AM

It must be a feature of my template then - I am using Flexibility


extrazin October 28th, 2011 05:33 AM

Can't find the PHP-code
 
Hi,

I can't find the php-code in any of the files of my theme (TheJewelryShop). I did find it in TwentyTen (hoping it would somehow drip down into the theme used), but alas...

My store details:
Store ID: 30964
URL: http://www.parfumfan.nl/

Thanks!

Jeroen

Eric October 28th, 2011 09:08 AM

Hi

I tried to download the theme you are using but it's a premium theme. So, since it's a premium theme, just ask support which template file is responsible for displaying the titles on Pages (not posts).

Or you could try the method I outlined here: http://www.datafeedr.com/videos?vide...rc=yt#videotop

Eric


All times are GMT -5. The time now is 10:21 PM.

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