WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing content from wordpress (15 posts)

  1. kmclafferty
    Member
    Posted 4 years ago #

    I am very new to web design and I am trying to design a website for my small office. I would like to delete the blog content from the template that I got. How can I do that? Ex: get rid of:
    Follow us on Twitter, Facebook, etc.
    Also to remove the search button and the flickr photo box.
    Thank you!

  2. ambrosite
    Member
    Posted 4 years ago #

    You would have to tell us which template/theme you are using. Each one is constructed differently.

  3. kmclafferty
    Member
    Posted 4 years ago #

    It is the Titan theme. Thanks again!

  4. Samuel B
    moderator
    Posted 4 years ago #

    comment out or remove this bit from theme's header.php

    <div id="follow">
          <div class="wrapper clear">
            <dl>
              <dt><?php _e('Follow:', 'titan') ?></dt>
                <dd><a class="rss" href="<?php bloginfo('rss2_url'); ?>"><?php _e('RSS', 'titan') ?></a></dd>
                <?php if ($titan->emailToggle() == 'true') : else : ?>
                  <dd><a class="email" href="<?php if ($titan->feedEmail() !== '') echo $titan->feedEmail(); else echo "#"; ?>"><?php _e('Email', 'titan') ?></a></dd>

    back up 1st

  5. ambrosite
    Member
    Posted 4 years ago #

    There's another way you could do it. Add the following line to the bottom of the style.css file:

    div#follow ( display: none; }

    It's not as clean as solution as what samboll recommended, but it would save you from having to edit the template files, and it is easily reversible.

  6. kmclafferty
    Member
    Posted 4 years ago #

    Thank you both but somehow none of these worked :(

  7. ambrosite
    Member
    Posted 4 years ago #

    Perhaps if you gave us a link to your site, we could take a closer look.

  8. kmclafferty
    Member
    Posted 4 years ago #

    thanks.

    retinasouthflorida.com

  9. Samuel B
    moderator
    Posted 4 years ago #

    hmmm...that works on my local test install

  10. kmclafferty
    Member
    Posted 4 years ago #

    I tried it twice and the website went down. If memory serves, when I tried to access the website following, it gave me an error #52. I cannot recall what the message was, however.

  11. kmclafferty
    Member
    Posted 4 years ago #

    Parse error: syntax error, unexpected T_ENDIF in /home/content/42/6001242/html/wp-content/themes/titan/header.php on line 52

  12. ambrosite
    Member
    Posted 4 years ago #

    What about the solution I gave you? Add this to the bottom of your CSS file. It cannot possibly cause your site to go down, since it does not involve editing the template files.

    #follow ( display: none; }

  13. kmclafferty
    Member
    Posted 4 years ago #

    No, it just didn't change anything. I still have it in my css file but the Follow Twitter, Facebook, etc is still there.

  14. ambrosite
    Member
    Posted 4 years ago #

    I have no idea why it's not working. I can see the rule there in your CSS file; it's formatted corrected and it does not appear to be commented out.

    Try moving it up in the file. Put it right underneath this line:

    @import url("stylesheets/master.css");

  15. ambrosite
    Member
    Posted 4 years ago #

    I know what the problem is. You have a typo in the rule. You need to use curly brackets, not parentheses:

    div#follow ( display: none; }

    Change to:

    div#follow { display: none; }

Topic Closed

This topic has been closed to new replies.

About this Topic