![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
![]() 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 Code:
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 Code:
PHP Code:
__________________
![]() ![]() ![]() ![]() Last edited by Eric : October 28th, 2011 at 09:09 AM. Reason: Added link to video |
#2
|
|||
|
|||
![]() 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
|
||||
|
||||
![]() Can you post the entire contents of your page.php here?
__________________
![]() ![]() ![]() ![]() |
#4
|
|||
|
|||
![]() I believe your endif statment has a ; at the end.
|
#5
|
||||
|
||||
![]() endif's are supposed to have a semi-colon at the end. http://php.net/manual/en/control-str...ive-syntax.php
__________________
![]() ![]() ![]() ![]() |
#6
|
|||
|
|||
![]() 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
|
||||
|
||||
![]() 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
|
|||
|
|||
![]() thanks Eric - I will give it a shot
|
#9
|
|||
|
|||
![]() you can actually find that piece of code in this file: loop-page.php
|
#10
|
|||
|
|||
![]() 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
|
||||
|
||||
![]() 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
|
|||
|
|||
![]() I am using the "Profits" theme and would appreciate help on removing the word "store".
Thanks, Tom Personalize Your Checks! |
#13
|
||||
|
||||
![]() Quote:
__________________
![]() ![]() ![]() ![]() |
#14
|
|||
|
|||
![]() 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
|
||||
|
||||
![]() Thanks for the tip but do you mean the theme Twenty Eleven?
__________________
![]() ![]() ![]() ![]() |
#16
|
|||
|
|||
![]() 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
|
||||
|
||||
![]() Quote:
![]()
__________________
![]() ![]() ![]() ![]() |
#18
|
|||
|
|||
![]() It must be a feature of my template then - I am using Flexibility
![]() |
#19
|
|||
|
|||
![]() 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
|
||||
|
||||
![]() 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 |
Display Modes | |
|
|