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
cheers
Where is it showing 'meta description', on the page?
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)
#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)
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
if use this code it takes the page name a way but the description stays
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.
Rony
<?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 } ?>
Viewing 15 lines of 16 lines. View entire code block.
Rony
i just changed it in the main.css.
i appreciate all your help
i appreciate all your help
Closed
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.