如何在产品页面上创建品牌名称 - 使用短代码,插件 - wooCommerce的插件
我正在使用平坦的主题,必须设计自定义产品页面。我正在为WooCommerce插件使用品牌。我通过[product_brands_info type ='name']获得了标题上方的品牌名称。但是我希望它可以单击,以便将其重定向到特定的品牌页面。请帮助 http://artpoint.edupox.com/product/product/untitled-4/
I am using flatsome theme and have to design custom product page. I am using Brands for Woocommerce plugin. I got the Brand name above the Title through [product_brands_info type=’name’]. But I want it to be clickable so that it should redirect to the specific brand page. Pls help
http://artpoint.edupox.com/product/untitled-4/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经检查了插件,似乎没有与此快捷代码链接的选项,但是在此简码中,您可以使用这两个操作轻松添加代码。这些动作将在短装内容之前和之后起作用。
将这些代码添加到激活的主题的函数中。php文件。如果您愿意,也可以在
< a>
标签中添加target =“ _ blank”
,因为它是外部链接。确保您在管理面板中添加了品牌URL,请参阅屏幕截图 https://prnt.sc/_yauhdokaqccd 。希望它对您有用。
I have checked the plugin and seems there is no options for linking with this shortcode but in this shortcode you can easily add codes using these two actions. These actions will work before and after the shortcodes content.
Add these codes in your activated theme's functions.php file. If you want you can also add
target="_blank"
in the<a>
tag as it is an external link.Make sure you have added brand url in the admin panel, please see the screenshot https://prnt.sc/_YaUhdokAQCd . Hope it will work for you.