Archived

This topic is now archived and is closed to further replies.

  • 0

brandnav logo link


Question

Posted · Report post

i want to change the brandnav logo link to another website

this custom code is not working:

 

 

add_filter ( 'navbar_brand', 'my_logo_url' );
function my_logo_url( $logo ) {
return '<a class="plbrand" href="http://www.vincentino.de/" title=""><img class="mainlogo-img" src="http://vincentino-medienwerkstatt.de/wp-content/uploads/2013/05/vincentino_logo_2801.png" alt="" /></a>';
}

 

thank you for helping!

alfred

 

http://vincentino-medienwerkstatt.de

 

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

That code isn't CSS, its a hook filter, so that code needs to go into the functions.php file of either your child theme or customise plugin whichever you're using.

 

I recommend you read our customisation methods and hooks documentation.

 

http://support.pagelines.me/docs/customization/customization-methods/

http://support.pagelines.me/docs/customization/hooks/

Share this post


Link to post
Share on other sites

Posted · Report post

hi Danny,

no, not working. I did:

 

 

add_filter( 'pagelines_site_logo', 'my_logo_url' );

function my_logo_url( $logo ) {

return '<a class="plbrand mainlogo-link" href="http://www.vincentino.de" title=""><img class="mainlogo-img" src="http://vincentino-medienwerkstatt.de/wp-content/uploads/2013/05/vincentino_logo_2801.png" alt="" /></a>';

 

}

 

 

if i copy it into the "custom code" field of pageline

it says LESS COMPILE ERROR failed at `; ` line: 1007

 

and the code in the pageline window changes like that:

 

add_filter( 'pagelines_site_logo', 'my_logo_url' );
function my_logo_url( $logo ) {
return '';
 
}

 

any idea? thank you!

Share this post


Link to post
Share on other sites

Posted · Report post

I added the code to my test site, I never received any compile error or have the code change. Where abouts did you add the code ?

Share this post


Link to post
Share on other sites

Posted · Report post

hm, 

i put it into the "CSS/LESS Rules" field of pageline. 

i put it at the end. this is all i have there:

 

body{}

.fpost .post-header {float: none; clear: both; padding-top: 10px; text-decoration: none}
.metabar {display:none;}
 
.post-meta { margin-bottom: .6em !important;}
.main-nav li a {font-size:13px; font-weight:bold; background-color: Transparent;}
.nav-content-width { border: none !important; box-shadow: none; }
h3.ev-widget-post-title {font-size:10px;}
 
hr, .fpost, .clip_box, .widget-title, .metabar a, #morefoot .widget-title, #site #dsq-content h3, .navigation_wrap{border-bottom: 4px solid transparent;}
 
.main-nav li a:hover, .main-nav li.current_page_item > a, .main-nav li.current-page-ancestor > a {background-color: Transparent !important;}
 
.video-js-box {background: #ffffff; border: 8px solid #ffffff !important;}
img {padding:8px; background:#ffffff;}
.wp-thumb-overlay {background: #ffffff; border: 2px solid #ffffff;}
 
.mainlogo-img {background: transparent !important;}
h1.entry-title, h2.entry-title {font-size:20px !important;}
 
#brandnav .brandnav-nav { margin-top: 45px;}
body.fixed_width #page {padding-top: 0px;}

 

 

 

 

add_filter( 'pagelines_site_logo', 'my_logo_url' );

function my_logo_url( $logo ) {

return '<a class="plbrand mainlogo-link" href="http://www.vincentino.de" title=""><img class="mainlogo-img" src="http://vincentino-medienwerkstatt.de/wp-content/uploads/2013/05/vincentino_logo_2801.png" alt="" /></a>';

 

}

Share this post


Link to post
Share on other sites