发贴时【添加附件】链接改为按钮样式 折腾教程

折腾 2月前 1114

本教程需要修改2处文件,容易程度:非常容易。
1:打开模板下的【plugin/模板名称/overwrite/view/htm/post.htm】文件
如果上述文件不存在,则打开根目录下的【view/htm/post.htm】
找到<!--{hook post_message_after.htm}-->和<!--{hook post_submit_after.htm}-->之间的内容,修改为保存
<div class="d-flex justify-content-between">
	<div>
		<label class="addattach btn btn-secondary mb-0" id="addattach">
			<i class="icon-folder-open-o"></i> 
				<?php echo lang('add_attach');?>
				<input type="file"  multiple="multiple" class="d-none" />
		</label>
				<!--{hook post_bottom_right.htm}-->
	</div>
	<div class="text-right">
		<button type="submit" class="btn btn-primary" id="submit" data-loading-text="<?php echo lang('submiting');?>..."> <?php echo $form_submit_txt;?> </button>
				<!--{hook post_bottom_left.htm}-->
	</div>
</div>
<div class="attachlist_parent">
	<?php echo post_file_list_html($filelist, TRUE);?>							
</div>​

2:打开模板下的【plugin/模板名称/overwrite/css/bootstrap-bbs.css】文件
有些模板可能自己重新定义了CSS文件名称,请自己查找一下
如果上述文件均不存在,则打开根目录下的【view/css/bootstrap-bbs.css】
找到下面内容并删除。

.addattach:hover {
  font-weight: 800;
}

TAGS

打赏
参与人数1 金币+1 理由
若如初 + 1 激动人心, 无以言表!
──── 0人觉得很赞 ────
最新回复 (0)
    暂无回复,快来抢沙发吧

    暂无回复,快来抢沙发吧

返回