• I’m trying to understand the use of Codeblocks. Can you elaborate?

    “you can access your blocks of code using [codeblock name=’MY_BLOCK’] where MY_BLOCK is whatever you titled your block of code.”

    However, what do you mean by “whatever you titled your block of code”? I didn’t name it anything. Here’s a snippet of what is in my post –

    /* Smartphones (landscape) ----------- */
    @media only screen
    and (min-width : 321px) {
    /* Styles */
    }

    Here’s a link to my test post – Media Queries for Standard Devices

    Looking forward to your response.

    -Jared

    https://ww.wp.xz.cn/plugins/codeblocks/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hank Brekke

    (@z43-studio)

    In the administration, there should be an option to title your blocks of code. This feature is optional, but can help organize your structure. The title field is directly above each block of code.

    If you are not using the titles feature, you can simply leave out the entire title="MY_BLOCK" section and simply add [codeblock] into your article. Codeblocks will load the blocks you’ve written in the order they appear below.

    The benefit of adding a title is in case the order of the blocks below changes, or you decide to rearrange the order in your article, as currently there is no rearranging feature in the Codeblocks section itself.

    Thread Starter webfrogs CREATIVE AGENCY

    (@jpc-solutions)

    I understand. I have figured it out. It works great. Just gave you a five star.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using Codeblocks’ is closed to new replies.