Advertisement:

Author Topic: Show Category description under title.  (Read 2328 times)

rels

  • Newbie
  • *
  • Posts: 28
Show Category description under title.
« on: October 27, 2013, 04:22:54 pm »
Hi guys,

Ok I have tried doing this best has I can with no luck.

I am trying to show the category description just before the listings. For better SEO and so people can read a little before searching.

Is there anyway of doing this and if so Could you show me how.

I am using Osclass 3.2.1 with the default theme.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Show Category description under title.
« Reply #1 on: October 27, 2013, 05:50:52 pm »
Hi,

The helper osc_category_description()? ???

Regards

rels

  • Newbie
  • *
  • Posts: 28
Re: Show Category description under title.
« Reply #2 on: October 28, 2013, 01:11:06 pm »
Now I'm wanting text under the title on the category to show.

The image shows what I'm trying to achieve  :-\

I anyone could tell me where to put a code ect this would be very helpful :)

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Show Category description under title.
« Reply #3 on: October 30, 2013, 06:53:17 pm »
I was looking around to see if I could help in some way, but to my surprise the category is not pulling it's description like is it supposed to. it is pulling the 1st item description. which makes me wonder where the category description is being used LOL ???

I have some time today to try and help you sort this out ....

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Show Category description under title.
« Reply #4 on: October 30, 2013, 07:07:39 pm »
for your fix..in search.php add this in red, depending on your theme (this is bender) under your  "search title" header

<?php osc_run_hook('search_ads_listing_top'); ?>
            <h1><?php echo search_title(); ?></h1>
            <p><?php echo osc_category_description(); ?></p>

            <?php if(osc_count_items() == 0) { ?>
                <p class="empty" ><?php printf(__('There are no results matching "%s"', 'bender'), osc_search_pattern()) ; ?></p>
            <?php } else { ?>

now to figure out why the description is not being used in the meta tag.......

rels

  • Newbie
  • *
  • Posts: 28
Re: Show Category description under title.
« Reply #5 on: October 31, 2013, 02:09:16 pm »
1 word my friend "Awsome" Many many thanks for getting this working :D