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
  #41  
Old August 27th, 2012, 08:16 PM
marksperl marksperl is offline
 
Join Date: Aug 2012
Posts: 12
Default

Eric,
It didn't work. It just changed "STORE" from grey to black. I left it up for you to see.
  #42  
Old August 27th, 2012, 09:20 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Maybe try this instead of what I initially said:
PHP Code:
    elseif ( is_singular() ) 
        if (!
is_dfr()) 
            
$title the_title'<h1 class="' esc_attr$post->post_type ) . '-title entry-title">''</h1>'false );
        else
            
$title ''
Eric
  #43  
Old August 27th, 2012, 10:34 PM
marksperl marksperl is offline
 
Join Date: Aug 2012
Posts: 12
Default

it worked. thank you.
  #44  
Old March 5th, 2013, 11:02 PM
nzcid nzcid is offline
 
Join Date: Dec 2011
Posts: 404
Default

Hey Eric

Looks like in this latest release of this theme they have changing the coding in this file.

Code:
<?php
/**
 * The default template for displaying content. Used for both single and index/archive/search.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
?>

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
        <div class="featured-post">
            <?php _e( 'Featured post', 'twentytwelve' ); ?>
        </div>
        <?php endif; ?>
        <header class="entry-header">
            <?php the_post_thumbnail(); ?>
            <?php if ( is_single() ) : ?>
            <h1 class="entry-title"><?php the_title(); ?></h1>
            <?php else : ?>
            <h1 class="entry-title">
                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
            </h1>
            <?php endif; // is_single() ?>
            <?php if ( comments_open() ) : ?>
                <div class="comments-link">
                    <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
                </div><!-- .comments-link -->
            <?php endif; // comments_open() ?>
        </header><!-- .entry-header -->

        <?php if ( is_search() ) : // Only display Excerpts for Search ?>
        <div class="entry-summary">
            <?php the_excerpt(); ?>
        </div><!-- .entry-summary -->
        <?php else : ?>
        <div class="entry-content">
            <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
            <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
        </div><!-- .entry-content -->
        <?php endif; ?>

        <footer class="entry-meta">
            <?php twentytwelve_entry_meta(); ?>
            <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
            <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
                <div class="author-info">
                    <div class="author-avatar">
                        <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?>
                    </div><!-- .author-avatar -->
                    <div class="author-description">
                        <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
                        <p><?php the_author_meta( 'description' ); ?></p>
                        <div class="author-link">
                            <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
                                <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() ); ?>
                            </a>
                        </div><!-- .author-link    -->
                    </div><!-- .author-description -->
                </div><!-- .author-info -->
            <?php endif; ?>
        </footer><!-- .entry-meta -->
    </article><!-- #post -->
  #45  
Old March 6th, 2013, 08:48 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

For the TwentyTwelve (2012 / Twenty Twelve) theme, you would replace this:
HTML Code:
            <?php if ( is_single() ) : ?>
            <h1 class="entry-title"><?php the_title(); ?></h1>
            <?php else : ?>
            <h1 class="entry-title">
                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
            </h1>
            <?php endif; // is_single() ?>
With this:
HTML Code:
            <?php if ( is_single() ) : ?>
            <?php if (!is_dfr()) : ?><h1 class="entry-title"><?php the_title(); ?></h1><?php endif; ?>
            <?php else : ?>
            <?php if (!is_dfr()) : ?><h1 class="entry-title">
                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
            </h1><?php endif; ?>
            <?php endif; // is_single() ?>
Here: /wp-content/themes/twentytwelve/content.php
  #46  
Old March 6th, 2013, 03:23 PM
nzcid nzcid is offline
 
Join Date: Dec 2011
Posts: 404
Default

Quote:
Originally Posted by Eric View Post
For the TwentyTwelve (2012 / Twenty Twelve) theme, you would replace this:
HTML Code:
            <?php if ( is_single() ) : ?>
            <h1 class="entry-title"><?php the_title(); ?></h1>
            <?php else : ?>
            <h1 class="entry-title">
                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
            </h1>
            <?php endif; // is_single() ?>
With this:
HTML Code:
            <?php if ( is_single() ) : ?>
            <?php if (!is_dfr()) : ?><h1 class="entry-title"><?php the_title(); ?></h1><?php endif; ?>
            <?php else : ?>
            <?php if (!is_dfr()) : ?><h1 class="entry-title">
                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
            </h1><?php endif; ?>
            <?php endif; // is_single() ?>
Here: /wp-content/themes/twentytwelve/content.php
Thanks Eric for your help.
  #47  
Old May 7th, 2013, 11:57 AM
thk1976 thk1976 is offline
 
Join Date: May 2012
Posts: 232
Default

Could you help me remowe the "store" in the Prana theme

page php. looks like this <?php get_header(); ?>

<div class="container_16 clearfix">

<div class="grid_12">
<div id="content">

<?php if ( have_posts() ) : ?>

<?php while ( have_posts() ) : the_post(); ?>

<?php get_template_part( 'content', 'page' ); ?>

<?php endwhile; ?>

<?php else : ?>

<?php get_template_part( 'loop-error' ); ?>

<?php endif; ?>

</div> <!-- end #content -->
</div> <!-- end .grid_12 -->

<?php get_sidebar(); ?>

</div> <!-- end .container_16 -->

<?php get_footer(); ?>
  #48  
Old May 7th, 2013, 12:25 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

You don't make that change in that page. You need to find the content-page.php file.

Eric
  #49  
Old May 7th, 2013, 03:05 PM
thk1976 thk1976 is offline
 
Join Date: May 2012
Posts: 232
Default

Ok thanks, this is the content php, can you help me how to change it, so it hides the "store"

PHP Code:
<div id="post-<?php the_ID(); ?><?php post_class(); ?>>
  
  <?php $entry_title = ( prana_post_edit_link() == '' )? 'entry-title entry-title-single entry-title-page' 'entry-title entry-title-single'?>
  <h1 class="<?php echo $entry_title?>"><?php the_title(); ?></h1>

  
  <?php if ( prana_post_edit_link() != '' ) : ?>  
  <div class="entry-meta"> 
    <?php echo prana_post_edit_link(); ?> 
  </div>  
  <?php endif;?>
  
  <div class="entry-content clearfix">
      <?php the_content(); ?>
  </div> <!-- end .entry-content -->
  
  <?php echo prana_link_pages(); ?>
  
</div> <!-- end #post-<?php the_ID(); ?> .post_class -->

<?php comments_template''true ); ?>

Last edited by Eric : May 7th, 2013 at 03:09 PM. Reason: added formatting.
  #50  
Old May 7th, 2013, 03:10 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Change this:
HTML Code:
<h1 class="<?php echo $entry_title; ?>"><?php the_title(); ?></h1>
To this:
HTML Code:
<?php if (!is_dfr()) : ?><h1 class="<?php echo $entry_title; ?>"><?php the_title(); ?></h1><?php endif; ?>
Eric
  #51  
Old May 7th, 2013, 03:23 PM
thk1976 thk1976 is offline
 
Join Date: May 2012
Posts: 232
Default

Thanks!!!
  #52  
Old October 8th, 2013, 07:11 AM
cookingsoftwareau cookingsoftwareau is offline
 
Join Date: Oct 2013
Posts: 2
Default

If you are using the Graphene theme there are two steps:

First, remove the title from the page as shown in the video.

Next edit the loop-page.php

Replace:

<?php /* Post title */ ?>
<h1 class="post-title entry-title">
<?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene' ); } else { the_title(); } ?>
<?php do_action( 'graphene_page_title' ); ?>
</h1>

with

<?php /* Post title */ ?>
<h1 class="post-title entry-title">
<?php if ( get_the_title() == '' ) { _e( '', 'graphene' ); } else { the_title(); } ?>
<?php do_action( 'graphene_page_title' ); ?>
</h1>


and all is good

Cheers Rowan
  #53  
Old October 8th, 2013, 09:23 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Thanks for sharing, Rowan!
  #54  
Old November 4th, 2013, 08:47 AM
manishmanish manishmanish is offline
 
Join Date: May 2013
Posts: 2
Default removing the word "Store" from the front page, and all the other pages

dear eric,
i am using the evolve theme. It is a free theme.
there is no page.php file, there is only index.php.

but the code is confusing for me.

I am not able to do the necessary modifications, to remove the word - "store" - from all the pages, store front page, as well as all the catagory pages.

Please note - i have tried the esier method (of removing the word "store" from the page title, but it has not worked. the resultant effect was that - all the pages showed up with header saying - "untitled".

Am attaching the source code of the index .php file here.

please help me out with necessary modifications - so that i can do the necessary changes in my index.php file

my store id is - 19s9znp2khx8eqt9

regards
manish shah
Attached Files
File Type: txt index.php of evolve theme.txt (30.8 KB, 477 views)
  #55  
Old November 4th, 2013, 08:57 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Welcome to the forums!

Yeah, that one is a little trickier. Here's how to do it.

In the index.php file look for this section:

PHP Code:
      <?php } elseif (is_page()) { ?>
      
      
      <?php if ( have_posts() ) : ?>
                <?php while ( have_posts() ) : the_post(); ?>

                <!--BEGIN .hentry-->
                <div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>"> 
                <h1 class="entry-title"><?php if ( get_the_title() ){ the_title(); }else{ _e'Untitled''evolve' );  } ?></h1>  
                    
                    <?php if ( current_user_can'edit_post'$post->ID ) ): ?>
       
                        <?php edit_post_link__'EDIT''evolve' ), '<span class="edit-page">''</span>' ); ?>
            
                
                    <?php endif; ?>

                    <br /><br />
Replace ALL of that with this:

PHP Code:
      <?php } elseif (is_page()) { ?>
      
      
      <?php if ( have_posts() ) : ?>
                <?php while ( have_posts() ) : the_post(); ?>

                <!--BEGIN .hentry-->
                <div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>"> 
                    <?php if(!is_dfr()): ?>
                        <h1 class="entry-title"><?php if ( get_the_title() ){ the_title(); }else{ _e'Untitled''evolve' );  } ?></h1>
                    
                        <?php if ( current_user_can'edit_post'$post->ID ) ): ?>
                               <?php edit_post_link__'EDIT''evolve' ), '<span class="edit-page">''</span>' ); ?>
                        <?php endif; ?>

                        <br /><br />
                    <?php endif; // if(!is_dfr()) ?>
That should do it!

Eric
  #56  
Old November 4th, 2013, 09:46 AM
manishmanish manishmanish is offline
 
Join Date: May 2013
Posts: 2
Default its worked - thanks Eric

hey eric,
its really worked

thank you so much for that. Special thanks for the faster reply.

regards
manish shah.
  #57  
Old October 3rd, 2014, 09:10 PM
rfrigge rfrigge is offline
 
Join Date: Sep 2014
Posts: 16
Default

Quote:
Originally Posted by cookingsoftwareau View Post
If you are using the Graphene theme there are two steps:

First, remove the title from the page as shown in the video.

Next edit the loop-page.php

Replace:

<?php /* Post title */ ?>
<h1 class="post-title entry-title">
<?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene' ); } else { the_title(); } ?>
<?php do_action( 'graphene_page_title' ); ?>
</h1>

with

<?php /* Post title */ ?>
<h1 class="post-title entry-title">
<?php if ( get_the_title() == '' ) { _e( '', 'graphene' ); } else { the_title(); } ?>
<?php do_action( 'graphene_page_title' ); ?>
</h1>


and all is good

Cheers Rowan
Indeed.. it's probably better to use <?php if(!is_dfr()): ?> instead of deleting the pagetitle, but this seems to be the right spot ! I was looking for 'page-title' but didn't work.. has to be "post title" in the loop-page.php for the graphene theme..

Last edited by rfrigge : October 3rd, 2014 at 09:13 PM.
  #58  
Old November 23rd, 2014, 09:27 PM
stevenlalwani stevenlalwani is offline
 
Join Date: Nov 2014
Posts: 58
Default

Humongousmall.com

How do I change "Store" to a specific store name from the front pages in my WP TwentyFourteen theme?
  #59  
Old November 24th, 2014, 10:27 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Just edit the WordPress Page "Store" and change the Page title to a specific store name.

Eric
  #60  
Old January 12th, 2015, 06:28 AM
brentwilliamz brentwilliamz is offline
 
Join Date: Dec 2014
Posts: 38
Default

Nearly didn't read this thread when I saw how long ago it was started. But what a gemful of glittering solutions!

Rapt to find Graphene theme's solution here, as we're using it with Datafeedr right now.

Thanks to Rowan & rfrigge for championing Graphene, hey.

And I've done your tweak, fixing this small but long-standing annoyance. Now I'm much happier.
 


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 03:54 PM.


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