{"id":2780,"date":"2020-02-18T09:38:52","date_gmt":"2020-02-18T00:38:52","guid":{"rendered":"\/blog\/?p=2780"},"modified":"2023-09-21T09:26:43","modified_gmt":"2023-09-21T00:26:43","slug":"wordpress-%ec%9b%8c%eb%93%9c%ed%94%84%eb%a0%88%ec%8a%a4-%ec%84%a4%ec%b9%98-%ed%9b%84-%ec%84%a4%ec%a0%95-%ec%a0%95%eb%a6%ac","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=2780","title":{"rendered":"[WordPress] \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc124\uce58 \ud6c4 \uc124\uc815 \uc815\ub9ac"},"content":{"rendered":"\n<ol class=\"wp-block-list\"><li>\ud544\uc218 Plug-in \uc124\uce58<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Classic Editor (https:\/\/ko.wordpress.org\/plugins\/classic-editor\/)<br>TinyMCE Advanced (https:\/\/ko.wordpress.org\/plugins\/tinymce-advanced\/)<br>Code Snippets (https:\/\/ko.wordpress.org\/plugins\/code-snippets\/)<br>Enlighter-Customizable Syntax Highlighter (https:\/\/ko.wordpress.org\/plugins\/enlighter\/)<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>\ud14c\ub9c8 \uc124\uce58 \ubc0f \uc124\uc815<br>\u2460 generatepress \ud14c\ub9c8 \uc124\uce58<br>\u2461 \ud14c\ub9c8 \ub514\uc790\uc778 &gt; \uc0ac\uc6a9\uc790 \uc815\uc758\ud558\uae30 &gt; \ucd94\uac00 CSS<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">\/*\n\/var\/www\/blog\/wp-content\/themes\/generatepress\/style.css\n *\/\nbody,\nbutton,\ninput,\nselect,\ntextarea {\n    font-family: \"malgun gothic\", \"serif\", \"monospace\", \"gulim\", \"dotum\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n    font-size: 0.8rem;\n    line-height: 1.5;\n}\n\nh1 {\n    font-size: 1.8rem;\n}\n\nh2 {\n    font-size: 1.2rem;\n}\n\nh3 {\n    font-size: 1rem;\n}\n\n.main-navigation a {\n    font-size: 1rem;\n}\n\n.menu-toggle {\n    font-size: 1rem;\n}\n\n.main-navigation .main-nav ul ul li a {\n    font-size: 1rem;\n}\n\n.main-title {\n    font-size: 1.6rem;\n}\n\n.site-description {\n    font-size: 1rem;\n}\n\n.pingback .edit-link {\n    font-size: 1rem;\n}\n\n.sidebar .widget,\n.footer-widgets .widget {\n    font-size: 1rem;\n}\n\n.widget-title {\n    font-size: 1rem;\n}\n\n.site-info {\n    font-size: 1rem;\n}\n\n.top-bar {\n    font-size: 1rem;\n}\n\n.generate-back-to-top,\n.generate-back-to-top:visited {\n    font-size: 20px;\n}\n\n\/* \"\uadf8 \ubc16\uc758 \uae30\ub2a5\" \uc544\ub798\uc758 WordPress.org \ub9c1\ud06c \uc81c\uac70\ud558\uae30 *\/\nli > a[href^=\"https:\/\/wordpress.org\"] {\n    display: none;\n}<\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">3. Snippets Plug-in \ucd94\uac00<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2460 tinyMCE \ud3f0\ud2b8 \ucd94\uac00<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">\/\/ 1) \ud3f0\ud2b8 \ucd94\uac00 \uc124\uc815\nfunction add_custom_fonts($init) {\n    $stylesheet_url = '\/wp-content\/uploads\/fonts\/custom-fonts.css'; \/\/ font-face \uc124\uc815\n    if(empty($init['content_css'])) {\n        $init['content_css'] = $stylesheet_url;\n    } else {\n        $init['content_css'] = $init['content_css'].','.$stylesheet_url;\n    }\n    $font_formats = isset($init['font_formats']) ? $init['font_formats'] : 'Helvetica=helvetica;Symbol=symbol;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;'; \/\/ \uae30\ubcf8 \ud3f0\ud2b8\ub9ac\uc2a4\ud2b8\uc5d0\uc11c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\ub294 \uac83 \uc81c\uac70\ud55c \ubaa9\ub85d\n    $custom_fonts = 'Gulimche=gulimche;Dotumche=dotumche;D2Coding=d2coding;NanumBarunPen=nanumbarunpen;Malgun Gothic=malgun gothic;'; \/\/ \ucd94\uac00 \ud3f0\ud2b8\ub97c \uc55e\ucabd\uc73c\ub85c \ubc30\uce58\n    $init['font_formats'] = $custom_fonts . $font_formats;\n  return $init;\n}\nadd_filter('tiny_mce_before_init', 'add_custom_fonts');\n\/\/ 2) \ud504\ub860\ud2b8\uc5d4\ub4dc\uc5d0\uc11c \uc2a4\ud0c0\uc77c\uc2dc\ud2b8\ub97c \ub85c\ub529\nfunction load_custom_fonts_frontend() {\n    \/\/ wp_enqueue_style() \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\ub3c4 \ub098\uc058\uc9c0 \uc54a\ub2e4\n    echo '';\n}\nadd_action('wp_head', 'load_custom_fonts_frontend');\nadd_action('admin_head', 'load_custom_fonts_frontend');\n\/\/ 3) \ud3f0\ud2b8 \ud06c\uae30 \uc124\uc815\nfunction add_custom_font_sizes( $initArray ){\n    $initArray['fontsize_formats'] = \"8px 9px 10px 11px 12px 13px 14px 15px 16px 17px 18px 19px 20px 21px 22px 23px 24px 26px 28px 30px 32px 36px 48px 60px 72px 96px\";\n    return $initArray;\n}\nadd_filter( 'tiny_mce_before_init', 'add_custom_font_sizes' );<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u2461 \uc2a4\ub9c8\ud2b8 \ub530\uc634\ud45c \ube44\ud65c\uc131\ud654<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">remove_filter('the_content', 'wptexturize');\nremove_filter('comment_text', 'wptexturize');\nremove_filter('single_post_title', 'wptexturize');\nremove_filter('the_title', 'wptexturize');\nremove_filter('wp_title', 'wptexturize');<\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">4. \uc790\uc8fc\uc4f0\ub294 SQL<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">-- \ubb38\uc790\uc5f4 \uce58\ud658\nUPDATE hasu0707.wp_posts\nSET post_content = REPLACE(post_content, '&lt;!-- wp:paragraph -->\\n', '');\n\nUPDATE hasu0707.wp_posts\nSET post_content = REPLACE(post_content, '\\n&lt;!-- \/wp:paragraph -->', '');\n\nUPDATE hasu0707.wp_posts\nSET post_content = INSERT(post_content, 1, 0, '&lt;!-- wp:paragraph -->\\n')\nWHERE (post_content NOT LIKE \"%&lt;!-- wp:paragraph -->%\") AND (post_content NOT LIKE \"%wp:enlighter%\");\n\nUPDATE hasu0707.wp_posts\nSET post_content = CONCAT(post_content, '\\n&lt;!-- \/wp:paragraph -->')\nWHERE (post_content NOT LIKE \"%&lt;!-- \/wp:paragraph -->%\") AND (post_content NOT LIKE \"%wp:enlighter%\");\n\nUPDATE hasu0707.wp_posts\nSET post_content = REPLACE(post_content, '&lt;!-- wp:paragraph -->\\n\\n&lt;!-- \/wp:paragraph -->', '');\n\n-- 2byte \ub530\uc634\ud45c\ub97c 1byte \ub530\uc634\ud45c\ub85c \uce58\ud658\nUPDATE wp_posts SET post_content = REPLACE(post_content, '\u201c', 0x22);\nUPDATE wp_posts SET post_content = REPLACE(post_content, '\u201d', 0x22);\nUPDATE wp_posts SET post_content = REPLACE(post_content, '\u2018', 0x27);\nUPDATE wp_posts SET post_content = REPLACE(post_content, '\u2019', 0x27);\n\n-- \uac80\uc0c9\nSELECT * FROM wp_posts WHERE post_title LIKE \"%WordPress%\";\nSELECT * FROM wp_posts WHERE post_title LIKE \"%CentOS 7%\";<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud544\uc218 Plug-in \uc124\uce58 Classic Editor (https:\/\/ko.wordpress.org\/plugins\/classic-editor\/)TinyMCE Advanced (https:\/\/ko.wordpress.org\/plugins\/tinymce-advanced\/)Code Snippets (https:\/\/ko.wordpress.org\/plugins\/code-snippets\/)Enlighter-Customizable Syntax Highlighter (https:\/\/ko.wordpress.org\/plugins\/enlighter\/) \ud14c\ub9c8 \uc124\uce58 \ubc0f \uc124\uc815\u2460 generatepress \ud14c\ub9c8 \uc124\uce58\u2461 \ud14c\ub9c8 \ub514\uc790\uc778 &gt; \uc0ac\uc6a9\uc790 \uc815\uc758\ud558\uae30 &gt; \ucd94\uac00 CSS 3. Snippets Plug-in \ucd94\uac00 \u2460 tinyMCE \ud3f0\ud2b8 \ucd94\uac00 \u2461 \uc2a4\ub9c8\ud2b8 \ub530\uc634\ud45c \ube44\ud65c\uc131\ud654 4. \uc790\uc8fc\uc4f0\ub294 SQL<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[23],"tags":[],"class_list":["post-2780","post","type-post","status-publish","format-standard","hentry","category-development_web"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2780"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2780\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}