*

jcarrolo01

  • *****
  • 256 posts
Blog button on header.
« 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

 
 
« Last Edit: October 25, 2020, 10:34:09 PM by jcarrolo01 »

*

MB Themes

Re: Blog button on header.
« Reply #1 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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

jcarrolo01

  • *****
  • 256 posts
Re: Blog button on header.
« Reply #2 on: October 26, 2020, 09:02:22 PM »
Thanks for clarification...


I will add the format for the button..





Best Regards
João Carrolo

*

MB Themes

Re: Blog button on header.
« Reply #3 on: October 27, 2020, 04:08:53 PM »
@jcarrolo01
Simply copy button style of your theme ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots