如何修改CSS中的特定属性 [英] How can I modify specific attribute in CSS

查看:113
本文介绍了如何修改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:


  1. 下载redirection.zip

  2. 解压缩

  3. 将重定向目录上传到 / wp-content / plugins 目录

  4. 转到插件管理页面并启用插件

  5. 管理/重定向页面中的选项

  1. Download redirection.zip
  2. Unzip
  3. Upload redirection directory to your /wp-content/plugins directory
  4. Go to the plugin management page and enable the plugin
  5. Configure the options from the Manage/Redirection page

这篇关于如何修改CSS中的特定属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆