Osclass Support Forums

Osclass plugin support => Blog and News Plugin => Topic started by: jcarrolo01 on October 25, 2020, 09:41:37 PM

Title: Blog button on header.
Post by: jcarrolo01 on October 25, 2020, 09:41:37 PM
Hello...

This is related with an problem with Zara 1.4.0

I place the flowing line in header of the theme...

Code: [Select]
<?php if(function_exists('blg_home_button')) { echo blg_home_button(); } ?>
I expecting a nice button like in your demo in veronika theme :) But no, what i got is a ugly single text "Blog"... After some investigation i realize that in blog/helpers.php i have the following function.

Code: [Select]
function blg_home_button($text = '') {
  if($text == '') {
    $text = __('Blog', 'blog');
  }

  return '<a href="' . blg_home_link() . '" class="blg-button blg-button-home">' . $text . '</a>';
}


There we have a class="blg-button blg-button-home"

But i cant find the css in \blog\css\user.css

Can you please paste here the css code to build the button...


Best Regards
João Carrolo

 
 
Title: Re: Blog button on header.
Post by: MB Themes on October 26, 2020, 08:16:44 PM
It is identifier for your personal styling.
Considering each theme has different styles, it is best to let you format button instead of hardcoding style.
Title: Re: Blog button on header.
Post by: jcarrolo01 on October 26, 2020, 09:02:22 PM
Thanks for clarification...


I will add the format for the button..





Best Regards
João Carrolo
Title: Re: Blog button on header.
Post by: MB Themes on October 27, 2020, 04:08:53 PM
@jcarrolo01
Simply copy button style of your theme ;)