Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM Ugly and defect link in h1 after update
#11
(2016-08-19, 17:47:02)Hypertexter Wrote: But what do you mean by

Quote:Though it may be better checking for the blog slug and rendering the link...

?

I mean something like:

Code:
<?php if (return_page_slug() == "blog") { ?>
    <h1><a href="<?php echo find_url("blog", ""); ?>"><?php get_page_title(); ?></a></h1>
<?php } else { ?>
    <h1><?php get_page_title(); ?></h1>
<?php } ?>

This way you don't need to insert html code in your blog page title.
Reply


Messages In This Thread
RE: Ugly and defect link in h1 after update - by Carlos - 2016-08-20, 00:53:54



Users browsing this thread: 1 Guest(s)