hide meta description on site.

Permalink
i there i am using the theme slate and im happy with it but it shows the meta description on the site and i dont want that.

cheers

 
Remo replied on at Permalink Reply
Remo
I don't understand why you'd want to remove the meta description tag. Even if it's empty, does it hurt?

Anyway, it's not about the theme, it's a part of the core you'd have to override.

Copy /concrete/elements/header_required.php to /elements/header_required.php and look for the meta description tag, line 40, 42 on my site and remove those.
Steevb replied on at Permalink Reply
Steevb
Where is it showing 'meta description', on the page?
Adreco replied on at Permalink Reply
Adreco
With Slate: Go to Dashboard > Pages and Themes > Themes > select Customize button after Slate, select CSS and paste in

#page-meta h1 {
display: none;
}



It can be removed by editing your theme files but the dashboard edit is fast and easy

(This div beneath the Nav displays Meta info as a publicly displayed area on the Slate theme. It is handy on some of my sites and a distracting design element on others. I've usually modified the theme files to each sites needs but the override from the dash works fine for this too. Easy to deal with either way)
traceymason replied on at Permalink Reply
sorry for the late reply, i was away for a bit.

if use this code it takes the page name a way but the description stays
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Copy /packages/theme_slate/themes/slate/elements/pagemeta.php to /themes/slate/elements/pagemeta.php and look for the collection description, line 15, and remove it.
<?php  if ($c->getCollectionTypeHandle() == 'blog_entry' || $c->getCollectionTypeHandle() == 'pb_post') { ?>
<h1><?php  echo $parentPage->getCollectionName();?></h1>
/*** Remove this piece of code ****/
<?php  if ($parentPage->getCollectionDescription()) { ?>
<p><?php  echo $parentPage->getCollectionDescription() ?></p>
<?php  } ?>
/*** Remove this piece of code ****/
<?php  } else {?>
<h1><?php  echo $c->getCollectionName() ?></h1>
/*** Remove this piece of code ****/
<?php  if ($c->getCollectionDescription()) { ?>
<p><?php  echo $c->getCollectionDescription() ?></p>
<?php  } ?>
/*** Remove this piece of code ****/
<?php  } ?>


Rony
traceymason replied on at Permalink Reply
i just changed it in the main.css.

i appreciate all your help
traceymason replied on at Permalink Reply
Closed