abanze 0 Report post Posted May 13, 2013 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
Danny+ 1,327 Report post Posted May 13, 2013 Hi Alfred, Your code is slightly incorrect, see this topic for the correct code. http://www.pagelines.com/forum/topic/22478-changing-the-header-image-link/ Please search our forums, before posting! Share this post Link to post Share on other sites
abanze 0 Report post Posted May 13, 2013 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
Danny+ 1,327 Report post Posted May 13, 2013 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 ? Please search our forums, before posting! Share this post Link to post Share on other sites
abanze 0 Report post Posted May 13, 2013 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
Danny+ 1,327 Report post Posted May 13, 2013 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/ Please search our forums, before posting! Share this post Link to post Share on other sites