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
  #21  
Old January 5th, 2012, 11:34 PM
markz markz is offline
 
Join Date: Dec 2011
Posts: 25
Default

Hi All:
I've found a couple solutions for those who are using Suffusion ...
The first is a global solution: it removes ALL page titles from ALL posts and pages, which may be undesirable if you want to keep your titles on your blog posts. Within Suffusion Options, go to 'back end settings' and choose the 'custom includes' tab. In the 'css box' add this code:

h1.posttitle {
display: none;
}

h1.posttitle {
padding-top: 0;
}

As mentioned, this removes all h1 titles from all pages & posts.

A better solution is to edit the page, and scroll down to "additional options for suffusion" and tick the box "do not display the page title." You'll need to do this for each page you do not want to display a title ... but that's probably only a handful of static pages (in my case: home, store, contact, about ... just the ones where a page title seems redundant.

Eric: Just as an aside, I tried your technique from the video, just using a space instead of page title within WP editor. That caused 'store' to disappear from my nav-menu (replaced with a space). I'm sure I could have fixed that within permalinks & page display in navbar in menu settings, but I wanted to pursue getting 'home' and 'contact' etc removed from page titles as well.

Hope that helps!
MarkZ
  #22  
Old January 6th, 2012, 09:18 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Thanks for sharing, MarkZ!
  #23  
Old June 5th, 2012, 09:27 AM
bkozlowski bkozlowski is offline
 
Join Date: Nov 2009
Posts: 73
Default

Hi Eric,

I tried the following as a function, but it removed all my H1 tags from the posts and pages? What is the proper way to write this function?

Code:
add_filter( 'genesis_post_title_output', 'remove_store_title' );
function remove_store_title() {
    if (!is_dfr())
        echo '<h2 class="entry-title"><?php the_title(); ?></h2>';
    else
	echo '<h1 class="entry-title"><?php the_title(); ?></h1>';  
}
Thanks
  #24  
Old June 5th, 2012, 09:39 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

I don't have a StudioPress theme to test on but maybe something like this found here:

PHP Code:
add_action('get_header''child_remove_page_titles');   
function 
child_remove_page_titles() {  
    if ( 
is_dfr() )  
        
remove_action('genesis_post_title''genesis_do_post_title');  

Eric
  #25  
Old June 21st, 2012, 08:48 AM
tedbee tedbee is offline
 
Join Date: Jun 2012
Posts: 7
Default Remove "Store" tag

Store ID: 15cnzotwcpsmvg0q
Website URL: myshoppingtime.net
URL to page in question: myshoppingtime.net

Hello Eric,

Even with this informations I don't get it.
Here is the page.php for Estore theme.
Don't know what to change.

PHP Code:
<?php get_header(); ?>

<?php get_template_part('includes/breadcrumbs'); ?>
    
<div id="main-area">
    <div id="main-content" class="clearfix">
        <div id="left-column">
        <!-- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>    -->
                <div class="post clearfix">                
                    <?php $custom get_post_custom($post->ID);
                    
$et_page_template = isset($custom["et_page_template"][0]) ? $custom["et_page_template"][0] : '';
                    
$et_page true;
                    if (
$et_page_template <> 'usual'get_template_part('includes/single-product');
                    else { 
?>
                        <h1 class="title"><?php the_title(); ?></h1>
                        <?php the_content(); ?>
                        <div class="clear"></div>
                        <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','eStore').':</strong> ''after' => '</p>''next_or_number' => 'number')); ?>
                        <?php edit_post_link(esc_html__('Edit this page','eStore')); ?>
                    <?php }; ?>    
                </div> <!-- end .post -->
                
                <?php if (get_option('estore_integration_single_bottom') <> '' && get_option('estore_integrate_singlebottom_enable') == 'on') echo(get_option('estore_integration_single_bottom')); ?>
                
                <?php if (get_option('estore_468_enable') == 'on') { ?>
                    <?php if(get_option('estore_468_adsense') <> '') echo(get_option('estore_468_adsense'));
                    else { 
?>
                        <a href="<?php echo esc_url(get_option('estore_468_url')); ?>"><img src="<?php echo esc_url(get_option('estore_468_image')); ?>" alt="468 ad" class="foursixeight" /></a>
                    <?php ?>    
                <?php ?>
            <?php endwhile; endif; ?>
        </div> <!-- #left-column -->
    
        <?php get_sidebar(); ?>
                        
<?php get_footer(); ?>
  #26  
Old June 21st, 2012, 08:50 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Try this:
PHP Code:
<?php get_header(); ?> 

<?php get_template_part('includes/breadcrumbs'); ?> 
     
<div id="main-area"> 
    <div id="main-content" class="clearfix"> 
        <div id="left-column"> 
        <!-- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>    --> 
                <div class="post clearfix">                 
                    <?php $custom get_post_custom($post->ID); 
                    
$et_page_template = isset($custom["et_page_template"][0]) ? $custom["et_page_template"][0] : ''
                    
$et_page true
                    if (
$et_page_template <> 'usual'get_template_part('includes/single-product'); 
                    else { 
?> 
                        <?php if (!is_dfr()) : ?><h1 class="title"><?php the_title(); ?></h1> <?php endif; ?>
                        <?php the_content(); ?> 
                        <div class="clear"></div> 
                        <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','eStore').':</strong> ''after' => '</p>''next_or_number' => 'number')); ?> 
                        <?php edit_post_link(esc_html__('Edit this page','eStore')); ?> 
                    <?php }; ?>     
                </div> <!-- end .post --> 
                 
                <?php if (get_option('estore_integration_single_bottom') <> '' && get_option('estore_integrate_singlebottom_enable') == 'on') echo(get_option('estore_integration_single_bottom')); ?> 
                 
                <?php if (get_option('estore_468_enable') == 'on') { ?> 
                    <?php if(get_option('estore_468_adsense') <> '') echo(get_option('estore_468_adsense')); 
                    else { 
?> 
                        <a href="<?php echo esc_url(get_option('estore_468_url')); ?>"><img src="<?php echo esc_url(get_option('estore_468_image')); ?>" alt="468 ad" class="foursixeight" /></a> 
                    <?php ?>     
                <?php ?> 
            <?php endwhile; endif; ?> 
        </div> <!-- #left-column --> 
     
        <?php get_sidebar(); ?> 
                         
<?php get_footer(); ?>
  #27  
Old June 21st, 2012, 10:04 AM
tedbee tedbee is offline
 
Join Date: Jun 2012
Posts: 7
Default no amelioration

Hello,

Thanks for you prompt reply.

Normaly the default page is the page.php, right?


So if I modify it, like you give it, nothing change...
  #28  
Old June 21st, 2012, 10:09 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

What page template have you chosen for the "Store" page to use?

Eric
  #29  
Old June 21st, 2012, 10:43 AM
tedbee tedbee is offline
 
Join Date: Jun 2012
Posts: 7
Default suite

http://www.screencast.com/t/hODcByZ0jV9A

Default page only
  #30  
Old June 21st, 2012, 10:44 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Can you paste the contents of the includes/single-product file here?
  #31  
Old June 21st, 2012, 10:53 AM
tedbee tedbee is offline
 
Join Date: Jun 2012
Posts: 7
Default includes

here it is: http://www.screencast.com/t/SC8OlauXvu
  #32  
Old June 21st, 2012, 11:04 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by tedbee View Post
In the single-product.php file, please replace this:
HTML Code:
<h1 class="title"><?php the_title(); ?></h1>
With this:
HTML Code:
<?php if (!is_dfr()) : ?><h1 class="title"><?php the_title(); ?></h1><?php endif; ?>
  #33  
Old June 21st, 2012, 11:20 AM
tedbee tedbee is offline
 
Join Date: Jun 2012
Posts: 7
Default just changed

still not that...sorry about this complicated theme...
  #34  
Old June 21st, 2012, 11:24 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by tedbee View Post
still not that...sorry about this complicated theme...
Can you share a screenshot of exactly what we are trying to remove?
  #35  
Old June 21st, 2012, 11:34 AM
tedbee tedbee is offline
 
Join Date: Jun 2012
Posts: 7
Default

http://screencast.com/t/ImpzpXyjd
  #36  
Old June 21st, 2012, 12:44 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

So you're trying to remove the "Added" text?
  #37  
Old June 21st, 2012, 12:51 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

I would probably remove all of the following code form the single-product.php file:
HTML Code:
<div class="product-info">
	<h1 class="title"><?php the_title(); ?></h1>
	<?php if (get_option('estore_postinfo2') <> '') { ?>
		<p class="post-meta"><?php esc_html_e('Added','eStore'); ?> <?php if (in_array('date', get_option('estore_postinfo2'))) { ?> <?php esc_html_e('on','eStore') ?> <?php the_time(get_option('estore_date_format')) ?><?php }; ?> <?php if (in_array('categories', get_option('estore_postinfo2'))) { ?> <?php esc_html_e('in','eStore'); ?> <?php the_category(', ') ?><?php }; ?></p>
	<?php }; ?>
	
	<div class="clearfix">
		<?php if ($et_price <> '') { ?>
			<span class="price-single"><span><?php echo esc_html($et_price); ?></span></span>
			<a href="#" class="addto-cart"><span><?php esc_html_e('Add to cart','eStore'); ?></span></a>
		<?php }; ?>
	</div>
	
	<div class="description">
		<p><?php echo($et_description); ?></p>
	</div> <!-- .description -->

</div> <!-- #product-info -->
  #38  
Old June 22nd, 2012, 03:36 AM
tedbee tedbee is offline
 
Join Date: Jun 2012
Posts: 7
Default

A big Thanks for your Help Eric!
  #39  
Old August 26th, 2012, 04:49 PM
marksperl marksperl is offline
 
Join Date: Aug 2012
Posts: 12
Default

I don't see this within my theme Origin (hersportsgear.net)?
  #40  
Old August 26th, 2012, 05:01 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by marksperl View Post
I don't see this within my theme Origin (hersportsgear.net)?
Hi

Try changing this:
PHP Code:
    elseif ( is_singular() )
        
$title the_title'<h1 class="' esc_attr$post->post_type ) . '-title entry-title">''</h1>'false ); 
To this:
PHP Code:
    elseif ( is_singular() )
        if (!
is_dfr())
            
$title the_title'<h1 class="' esc_attr$post->post_type ) . '-title entry-title">''</h1>'false ); 
Here: /wp-content/themes/origin/functions.php

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 06:06 AM.


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