-1
我使用wordpress中的分支指标提供的代码来创建智能横幅,但我无法更改横幅的颜色,高度和位置。我还需要横幅上的箭头!在wordpress中是否有插件?如何在branch.io中为android定制智能应用横幅?
我使用wordpress中的分支指标提供的代码来创建智能横幅,但我无法更改横幅的颜色,高度和位置。我还需要横幅上的箭头!在wordpress中是否有插件?如何在branch.io中为android定制智能应用横幅?
亚历克斯从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>
但是,自定义选项不提供我选择调整我的横幅的选项。如果你可以提供一个我可以添加到分支提供的代码片段,这将有所帮助! – sesha
@sesha用一些代码编辑我的答案! –