elementor custom css > 問題

標籤: 

正在檢視 8 個帖子:1-8 (共 8 個帖子)
  • 作者
    帖子
  • gnt-wordpress
    參與者
    • 文章數量: 49
    @gnt-wordpress
    樓主

    我製作的一個站點,在我們本機編輯,不會出任何問題
    客戶對頁面做了任何修改儲存後,會導致在 elementor 元件的 advanced 裡面透過 custom css 新增的 css 樣式中的> 變成了> 導致樣式錯誤。

    新增了

    function fix_greater_than_sign( $content ) {
    return str_replace( ‘>’, ‘>’, $content );
    }
    add_filter( ‘the_content’, ‘fix_greater_than_sign’ );

    無效,請問有沒有其他辦法解決?

    gnt-wordpress
    參與者
    • 文章數量: 49
    @gnt-wordpress
    樓主

    您這個文字框中無法反應問題,圖片連結
    https://www.lslidar.com/wp-content/uploads/2023/04/WechatIMG5885.png

    詩語
    管理員
    • 文章數量: 5,932
    @feibisi

    你的 CSS 語法有問題,不能有特殊符號在裡面

    仔細檢查下程式碼。下面的 CSS 不對

    gnt-wordpress
    參與者
    • 文章數量: 49
    @gnt-wordpress
    樓主

    那個就是 定位子元素 > 符號,不過客戶那邊修改後,變成了那個,,我這裡編輯沒有任何問題

    gnt-wordpress
    參與者
    • 文章數量: 49
    @gnt-wordpress
    樓主

    selector strong>p{
    font-size:28px
    }

    詩語
    管理員
    • 文章數量: 5,932
    @feibisi

    如果這種情況反覆出現的話,你讓客戶用 Google 瀏覽器編輯吧,有的時候會是輸入法和瀏覽器的問題。

    gnt-wordpress
    參與者
    • 文章數量: 49
    @gnt-wordpress
    樓主

    哎,再次出現了這個問題,客戶是用 chrome 編輯的,崩潰WX20230613-121354

    詩語
    管理員
    • 文章數量: 5,932
    @feibisi

    還是轉碼的問題, > 應該是個 > 箭頭符號。你讓客戶新增自定義 CSS 不要新增到 elementor 的這個裡面,新增到 WordPress 預設的自定義 css 裡。

正在檢視 8 個帖子:1-8 (共 8 個帖子)
  • 哎呀,回覆話題必需登入。

話題資訊

  • 當前位於:Elementor
  • 7 條回覆
  • 2 個參與人
  • 最後回覆:<a href="https://bbs.weixiaoduo.com/users/feibisi/" title=" 檢視詩語的個人資料" class="bbp-author-link"><span class="bbp-author-name"> 詩語</span></a>
  • 上次活動:<a href="https://bbs.weixiaoduo.com/topic/42040/#post-42178" title=" 回覆至:elementor custom css > 問題">1 年、 10 月前</a>