2016-06-21 86 views

回答

0

亚历克斯从Branch.io这里:我们目前没有一个WordPress插件的智能横幅,但这是一个好主意!

与此同时,我们有一个customization options您可以使用,并且您也可以将您自己的custom CSS styles应用于横幅。

编辑

要简单地调整横幅的高度是有点,你必须感到,通过为自己破解的,但你可以使用此代码作为出发点(从增加高度作为示例):

<style> 
     #branch-banner-iframe { 
      height: 90px !important; 
     } 
    </style> 

    <script type="text/javascript"> 
     (function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode banner closeBanner creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setIdentity track validateCode".split(" "), 0); 
     branch.init('key_live_xxxxxxxxxxxxxxxxxxxxx'); 
     branch.banner({ 
      icon: 'http://icons.iconarchive.com/icons/wineass/ios7-redesign/512/Appstore-icon.png', 
      title: 'Branch Demo App', 
      description: 'The Branch demo app!', 
       customCSS: '.content { height: 90px !important; } .right { height: 77px !important; padding-top: 29px !important; } .left { height: 77px !important; } #branch-banner-close { top: 21px; } #branch-banner .icon img { margin-top: 7px; }' 
     }, {}); 
    </script> 
+0

但是,自定义选项不提供我选择调整我的横幅的选项。如果你可以提供一个我可以添加到分支提供的代码片段,这将有所帮助! – sesha

+0

@sesha用一些代码编辑我的答案! –