有没有办法在不使用HTML呈现选项的情况下创建内部锚定?我不介意,但我想我的客户会的;)
谢谢
有没有办法在不使用HTML呈现选项的情况下创建内部锚定?我不介意,但我想我的客户会的;)
谢谢
在“tinyMCE Advanced”插件中有一个特殊的图标。默认WordPress安装不提供锚图标/属性编辑器。
建筑外的mike23\'s answer. 在这里,您可以将锚定按钮附加到wysiwyg面板。
function set_tinymce_buttons( $initArray ) {
$initArray[\'theme_advanced_buttons1\'] .= \',anchor\';
return $initArray;
}
add_filter(\'tiny_mce_before_init\', \'set_tinymce_buttons\');
这是一个简单的非插件解决方案,您可以将其粘贴到functions.php
:
function set_tinymce_buttons( $initArray ) {
$initArray[\'theme_advanced_buttons1\'] =\'formatselect,|,bold,italic,underline,|,bullist,numlist,charmap,|,pastetext,pasteword,|,removeformat,|,anchor,link,unlink,|,undo,redo\';
$initArray[\'theme_advanced_buttons2\'] = \'\';
$initArray[\'theme_advanced_blockformats\'] = \'h2,h3,h4,p\';
return $initArray;
}
add_filter(\'tiny_mce_before_init\', \'set_tinymce_buttons\');
这样,您就可以在“格式”下拉列表中设置两行按钮和标记。看见this page 用于选项。
您可以轻松创建书签标记,只需执行以下步骤:
设置您的目的地
<h2 id="anchor"> Destination of your Anchor </h2>
创建目标超链接<a href="#anchor">Click Me for check our Anchor</a>
请参见上图以获得更好的解释
有没有可能在我的博客标题标签上有我的自定义永久链接结构?我目前的permalink结构是/%postname%/%location%/%mba_courses%/ 我的位置和mba\\U课程是自定义分类法现在我想在我的标题标签上写这个,我可以在标题标签上写这样的东西吗?<title><?php echo (/%postname%/%location%/%mba_courses%/); ?><title> 我知道这是一个错误的代码,它不会工作,但他们的任何方式,