Cov ntsiab lus Marketing

WordPress Keyboard Shortcuts: Ntxiv Ib Keyboard Shortcut kom Nkaum lossis Qhia WordPress Admin Bar

WordPress muaj ntau yam ntawm cov keyboard shortcuts los txhim kho nws cov neeg siv khoom tsim khoom. Cov shortcuts no yog tsim los rau Windows thiab MacOS operating systems thiab ua raws li WordPress kev siv, los ntawm cov ntsiab lus kho kom pom kev tswj xyuas. Cia peb tshawb nrhiav cov shortcuts no:

WordPress Block Editor Shortcuts

MacOS

  • Option + Control + o: Qhib block navigation menu.
  • Kev xaiv + Tswj + n: Nkag mus rau ntu tom ntej ntawm tus editor.
  • Kev xaiv + Tswj + p: Nkag mus rau ntu dhau los ntawm tus editor.
  • fn + Option + F10: Navigates mus rau qhov ze tshaj plaws toolbar.
  • Command + Option + Shift + m: Hloov ntawm Visual thiab Code Editor.

lub qhov rais

  • Ctrl + Ua haujlwm + o: Qhib block navigation menu.
  • Ctrl + Ua haujlwm + n: Nkag mus rau ntu tom ntej ntawm tus editor.
  • Ctrl + Ua haujlwm + p: Nkag mus rau ntu dhau los ntawm tus editor.
  • Fn + Ctrl + F10: Navigates mus rau qhov ze tshaj plaws toolbar.
  • Ctrl + Ua haujlwm + Alt + m: Hloov ntawm Visual thiab Code Editor.

WordPress Classic Editor Keyboard Shortcuts

MacOS

  • Command + y: Rov ua qhov kawg nkaus.
  • Command + Option + [ntaus]: Inserts heading sizes (eg, Command + Option + 1 for h1).
  • Command + Option + l: Aligns ntawv rau sab laug.
  • Command + Option + j: justifies ntawv nyeem.
  • Command + Option + c: Centers text.
  • Command + Option + d: Siv kev tawm tsam.
  • Command + Option + r: Aligns ntawv rau sab xis.
  • Command + Option + ua: Tsim ib daim ntawv teev npe tsis raug cai.
  • Command + Option + a: Inserts ib link.
  • Command + Option + o: Tsim ib daim ntawv teev tus lej.
  • Command + Option + s: Tshem tawm qhov txuas.
  • Command + Option + q: Formats ntawv raws li ib tug quote.
  • Command + Option + m: Ntxig ib daim duab.
  • Command + Option + t: Inserts 'Ntau' tag.
  • Command + Option + p: Inserts ib nplooj ntawv tawg tag.
  • Command + Option + w: Toggles fullscreen hom nyob rau hauv lub qhov muag editor.
  • Command + Option + f: Toggles fullscreen hom nyob rau hauv cov ntawv nyeem editor.

lub qhov rais

  • Ctrl + y: Rov ua qhov kawg nkaus.
  • Alt + Ua haujlwm + [tus lej]: Inserts heading sizes (piv txwv li, Alt + Shift + 1 rau ).
  • Alt + Shift + l: Aligns ntawv rau sab laug.
  • Alt + Shift + j: justifies ntawv nyeem.
  • Alt + Shift + c: Centers text.
  • Alt + Shift + d: Siv kev tawm tsam.
  • Alt + Shift + r: Aligns ntawv rau sab xis.
  • Alt + Shift + ua: Tsim ib daim ntawv teev npe tsis raug cai.
  • Alt + Shift + a: Inserts ib link.
  • Alt + Shift + o: Tsim ib daim ntawv teev tus lej.
  • Alt + Ua haujlwm + s: Tshem tawm qhov txuas.
  • Alt + Shift + q: Formats ntawv raws li ib tug quote.
  • Alt + Shift + m: Ntxig ib daim duab.
  • Alt + Shift + t: Inserts 'Ntau' tag.
  • Alt + Shift + p: Inserts ib nplooj ntawv tawg tag.
  • Alt + Shift + w: Toggles fullscreen hom nyob rau hauv lub qhov muag editor.
  • Alt + Shift + f: Toggles fullscreen hom nyob rau hauv cov ntawv nyeem editor.

Ntau xyoo dhau los, peb tau tsim ib lub plugin los nkaum qhov admin bar thaum saib koj qhov chaw thiab siv popup navigation hloov. Peb hu nws Teleport. Tom qab kev sim, peb pom tias nws qeeb ntawm qhov chaw thauj khoom lub sijhawm nrog cov txheej txheem uas peb siv, yog li peb tsis hloov kho lub plugin ntxiv lawm.

Keyboard Shortcut mus nkaum lossis Qhia Lub WordPress Admin Bar

Kuv nyiam WordPress's built-in admin bar thaum koj nkag rau hauv koj lub xaib, tab sis tsis yog thaum sim saib lub xaib. Yog li, kuv tau sau ib qho kev hloov kho uas koj yuav xav xa tawm ntawm koj tus kheej ... lub keyboard shortcut uas yuav zais lossis qhia WordPress Admin bar thaum koj saib koj qhov chaw, thiab koj tau nkag rau hauv!

MacOS

  • Option + Control + x: Toggle tus admin ntawv qhia zaub mov.

lub qhov rais

  • Ctrl + Ua haujlwm + x: Toggle tus admin menu bar.

Thaum admin bar loads, nws swb. Toggling nws yuav swb nplooj ntawv nce lossis nqis.

Ntxiv cov cai no rau koj tus menyuam lub ntsiab lus functions.php:

add_action('wp_enqueue_scripts', 'enqueue_adminbar_shortcut_script');
function enqueue_adminbar_shortcut_script() {
    if (is_user_logged_in()) {
        wp_enqueue_script('jquery');
        add_action('wp_footer', 'add_inline_admin_bar_script');
    }
}

function add_inline_admin_bar_script() {
    ?>
    <script type="text/javascript">
        jQuery(document).ready(function(jQuery) {
            var adminBar = jQuery('#wpadminbar');
            var body = jQuery('body');

            // Check if the admin bar exists and set the initial styling
            if (adminBar.length) {
                var adminBarHeight = adminBar.height();
                // Hide the admin bar and adjust the body's top margin
                adminBar.hide();
                body.css('margin-top', '-' + adminBarHeight + 'px');

                jQuery(document).keydown(function(event) {
                    // Toggle functionality on specific key combination
                    if ((event.ctrlKey || event.metaKey) && event.shiftKey && event.which === 88) {
                        if (adminBar.is(':visible')) {
                            adminBar.slideUp();
                            body.animate({'margin-top': '-' + adminBarHeight + 'px'}, 300);
                        } else {
                            adminBar.slideDown();
                            body.animate({'margin-top': '0px'}, 300);
                        }
                    }
                });
            }
        });
    </script>
    <?php
}

Piav qhia

  • Tsab ntawv no pib kuaj xyuas yog tias tus admin bar (#wpadminbar) yog tam sim no. Yog tias nws yog, tsab ntawv suav nws qhov siab.
  • Nws mam li nkaum qhov admin bar thiab teeb tsa margin-top ntawm lub body lub ntsiab rau qhov tsis zoo ntawm tus thawj tswj bar qhov siab siv jQuery. Qhov no ua rau admin bar tsis pom thawj zaug thiab hloov cov nplooj ntawv cov ntsiab lus.
  • Lub keydown event listener toggles qhov pom ntawm tus admin bar thiab kho qhov margin-top ntawm lub body los qhia lossis zais tus admin bar smoothly.

Douglas Karr

Douglas Karr yog CMO OpenINSIGHTS thiab tus founder ntawm lub Martech Zone. Douglas tau pab ntau ntau qhov kev vam meej MarTech startups, tau pab nyob rau hauv kev mob siab rau ntau tshaj $ 5 bil nyob rau hauv Martech nrhiav thiab kev nqis peev, thiab txuas ntxiv pab cov tuam txhab hauv kev siv thiab automating lawv cov kev muag khoom thiab kev lag luam cov tswv yim. Douglas yog tus paub thoob ntiaj teb kev hloov pauv digital thiab MarTech kws tshaj lij thiab hais lus. Douglas tseem yog tus sau phau ntawv Dummie phau ntawv qhia thiab phau ntawv ua lag luam.

lwm yam khoom

Rov qab mus rau sab saum toj
Close

Adblock nrhiav tau

Martech Zone muaj peev xwm muab cov ntsiab lus no rau koj yam tsis muaj nqi vim tias peb tau txais peb lub vev xaib los ntawm kev tshaj tawm cov nyiaj tau los, koom nrog kev sib txuas, thiab kev txhawb nqa. Peb yuav txaus siab yog tias koj yuav tshem koj cov ad blocker thaum koj saib peb lub xaib.