Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   How would I remove this plugin page title? (http://forum.bytesforall.com/showthread.php?t=15337)

rockandstroll Sep 9, 2011 05:16 AM

How would I remove this plugin page title?
 
I'm using the datafeedr plugin, and you can see on my website the page title "Store" comes up, I want to remove this properly, people who use the twenty ten theme simply just use the following method.

But how would I apply this method to the Atahualpa theme?

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

2. Look for the following lines:

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:

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:

Code:

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

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

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


This is from the datafeedr forum.


Anybody's help would be much appreciated.

lmilesw Sep 9, 2011 06:52 AM

With Atahualpa there are a couple of options.
  • In the the SEO theme settings turn on Use Post/Page Options
  • Now go the page you do not want to display the title on and you will see a box to not display the title.
  • With this method you now need to be aware that if you change the title of a post or page you need to also change it in this section of the post or page as well
The other option is to determine the selector for the title on that page and use CSS. In this case the CSS would be
HTML Code:

body.page-id-7 .post-headline {
    display: none;
}

To get that I just looked at the page source and did a search for "body class" without the quotes and it showed me the above. I then appended the .post-headline to it.


All times are GMT -6. The time now is 07:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.