如何修改CSS中的特定属性 [英] How can I modify specific attribute in CSS
问题描述
我使用WordPress。下面的代码片段位于loo-services.php
I am using WordPress. The following piece of code resides in loo-services.php
if($ct_options['ct_book_now'] == 'Yes') {
echo '<p>';
echo '<a class="book-now btn" href="#" data-service="';
the_title();
echo '">' . __('Book Now', 'contempo') . '</a>';
echo '</p>';
}
这段代码通过 data-service = the_title()
方法。
立即预订网站上有一个按钮当此按钮点击时,页面。
There is a button on the website "Book Now" When this button clicked then its forwarding to the default page.
我想当立即预订按钮点击然后转发用户到另一个页面,而不是使用数据服务=the_title()
。
I want when "Book Now" button clicked then forward user to another page rather then its default page that is used from data-service="the_title()"
.
在首页上有一个默认服务链接例如临床咨询。当这被点击,然后链接自动指向其默认页面,而我想链接到我在页面生成器中构建的自定义页面。此链接www.website.com/index.php/clinical-consultation-2而不是其默认页面链接?
On homepage there is a link of default service e.g. "Clinical Consultation". When this is clicked then link auto directs to its default page whereas I want to link this to custom page that I build in page builder e.g. This link www.website.com/index.php/clinical-consultation-2 instead of its default page link?
推荐答案
可以使用重定向插件:重定向,这将满足以下需求:
You can use a redirection plugin: Redirection and that would serve the need:
- 下载redirection.zip
- 解压缩
- 将重定向目录上传到
/ wp-content / plugins
目录 - 转到插件管理页面并启用插件
-
管理/重定向
页面中的选项
- Download redirection.zip
- Unzip
- Upload redirection directory to your
/wp-content/plugins
directory - Go to the plugin management page and enable the plugin
- Configure the options from the
Manage/Redirection
page
这篇关于如何修改CSS中的特定属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!