Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_title($cut_at = '') {
- $buffy = '';
- if (is_page(enter your page id number here)){
- $buffy .= '<h2 class="entry-title">';
- if ($this->is_single === true) {
- $buffy .= $this->title;
- } else {
- $buffy .='<a href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">';
- $buffy .= $this->title;
- $buffy .='</a>';
- }
- $buffy .= '</h2>';
- }
- elseif (!empty($this->title)) {
- $buffy .= '<h1 class="entry-title">';
- if ($this->is_single === true) {
- $buffy .= $this->title;
- } else {
- $buffy .='<a href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">';
- $buffy .= $this->title;
- $buffy .='</a>';
- }
- $buffy .= '</h1>';
- }
- return $buffy;
- }
Advertisement
Add Comment
Please, Sign In to add comment