Skip to content

Commit

Permalink
Clean up contentHub divs in short description
Browse files Browse the repository at this point in the history
  • Loading branch information
khawkins98 committed Apr 30, 2019
1 parent debd364 commit 68b72f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/plugins/vf-group-header-block/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
);
$heading = preg_replace(
'#</p>#',
' <a class="vf-link" href="'. get_site_url() .'/about">Read more</a></h1>',
' <a class="vf-link" href="'.get_site_url().'/about">Read more</a>.</h1>',
$heading
);
}
Expand Down
2 changes: 2 additions & 0 deletions wp-content/themes/vf-wp/partials/vf-masthead.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
if ( class_exists('VF_Cache') ) {
$uuid = vf__get_site_uuid();
$short_description = VF_Cache::get_post('https://dev.beta.embl.org/api/v1/pattern.html?filter-content-type=profiles&filter-uuid='.$uuid.'&pattern=node-strapline&source=contenthub');
// we don't want any of the contentHub `div`s. `span`s are OK though
$short_description = str_replace(array('<div', '</div>'), array('<span', '</span>'), $short_description);
print $short_description;
}
?>
Expand Down

0 comments on commit 68b72f5

Please sign in to comment.