Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Tips, Tricks & Tutorials
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 4th, 2011, 02:09 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default 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

Last edited by Eric : October 28th, 2011 at 09:09 AM. Reason: Added link to video
  #2  
Old January 9th, 2011, 11:26 AM
littlerhody littlerhody is offline
 
Join Date: Nov 2009
Posts: 52
Default

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
__________________
Simply the best social media integrated Free Classifieds Site on the planet. ClassifiedsEarth.com
  #3  
Old January 9th, 2011, 11:28 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Can you post the entire contents of your page.php here?
  #4  
Old January 12th, 2011, 05:06 PM
badm00n badm00n is offline
 
Join Date: Oct 2010
Posts: 39
Default

I believe your endif statment has a ; at the end.
  #5  
Old January 12th, 2011, 05:10 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by badm00n View Post
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
  #6  
Old February 20th, 2011, 12:16 AM
Mutiny92 Mutiny92 is offline
 
Join Date: Feb 2011
Posts: 9
Default

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?
  #7  
Old February 20th, 2011, 09:51 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

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...
  #8  
Old February 20th, 2011, 04:04 PM
Mutiny92 Mutiny92 is offline
 
Join Date: Feb 2011
Posts: 9
Default

thanks Eric - I will give it a shot
  #9  
Old May 7th, 2011, 09:19 AM
parkerproject parkerproject is offline
 
Join Date: Oct 2010
Posts: 38
Default

you can actually find that piece of code in this file: loop-page.php
  #10  
Old May 28th, 2011, 07:11 PM
pagerankone pagerankone is offline
 
Join Date: Mar 2011
Posts: 14
Lightbulb 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
  #11  
Old May 28th, 2011, 10:16 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

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.
  #12  
Old July 29th, 2011, 05:14 PM
tomsunde tomsunde is offline
 
Join Date: Apr 2008
Posts: 9
Default

I am using the "Profits" theme and would appreciate help on removing the word "store".
Thanks, Tom
Personalize Your Checks!
  #13  
Old July 29th, 2011, 10:50 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by tomsunde View Post
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.
  #14  
Old August 25th, 2011, 03:49 AM
jdrom jdrom is offline
 
Join Date: May 2011
Posts: 34
Default 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.
  #15  
Old August 25th, 2011, 06:54 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by jdrom View Post
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?
  #16  
Old September 12th, 2011, 10:18 AM
doggybiz doggybiz is offline
 
Join Date: Sep 2009
Posts: 22
Default

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
  #17  
Old September 12th, 2011, 10:23 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by doggybiz View Post
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:

  #18  
Old September 13th, 2011, 05:53 AM
doggybiz doggybiz is offline
 
Join Date: Sep 2009
Posts: 22
Default

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

  #19  
Old October 28th, 2011, 05:33 AM
extrazin extrazin is offline
 
Join Date: Mar 2011
Posts: 47
Default 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
  #20  
Old October 28th, 2011, 09:08 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:28 AM.


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