Hide text in excerpt view

  • sylvia

    #3090

    I have entered the following html in a post:

    <p id="blue_text">Testing for blue text</p>

    I want this text to be visible in the post…..but I also want this text to be hidden when the post is viewed in an excerpt view. Anyone know the best way to accomplish this?

    Thanks

    Admin

    Syahir Hakim

    #23333

    Use manual excerpt for that post. In the Edit Post screen, click on the “Screen options” pull-down tab near the top right corner of the page. Then tick the checkbox for “Excerpt”. You can then enter the excerpt for the post manually.

    soapy

    #23334

    Thanks for the response Syahir. What if I wanted this text for every post? Is there an easier way than writing manual excerpts for each post?

    Admin

    Syahir Hakim

    #23335

    You can use the Action Hooks Widget Areas. See this wiki page for more details:

    http://www.khairul-syahir.com/topics/web-dev/2011/graphene-theme-feature-highlight-action-hooks-widget-areas.html

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!