[Bug] Codes Shortcode doesn't work properly

  • Posted in : cvCard WP
  • isaumya
    Participant

    I dont know if you have tested your shortcodes or not, but you code shortcodes only work fpr plain text. e.g.

    [code_block_line_numbers]
    code line 1.
    code line 2.
    code line 3.
    [/code_block_line_numbers]

    But if you actually put any real code there, nothing actually shows up beside the lined design. If you dont believe, try testing this – http://snippi.com/s/t4zo8x3

    Mehmet S.
    Keymaster

    Hi, turn on the “Paste as text” option first in your content editor.

    See:

    isaumya
    Participant

    Thanks man. Thanks for it.

    Mehmet S.
    Keymaster

    You are welcome.

    isaumya
    Participant

    seems like it has some design bug. This is a code example inside your documentation file – https://www.diigo.com/item/image/3um1h/puxj

    Now this is the shortcode outcome – https://www.diigo.com/item/image/3um1h/7nh2

    Do u see the design issue in the line numbering section?

    ahmetsali
    Keymaster

    Hi, i can’t see this issue on our demo site, can you provide your related page url?

    isaumya
    Participant
    ahmetsali
    Keymaster

    it looks like the styles in the file https://isaumya-wphostingspot.netdna-ssl.com/wp-content/cache/autoptimize/1/css/autoptimize_8d86c61d5dcdb0e6b5d3ebd0c7eaf27e.css overrides theme default styles. You can add this custom css code to make code styles look as default;

    pre.prettyprint.linenums {
        padding: 22px 8px !important;
    }
    
    isaumya
    Participant

    Thanks I will definitely do that. Thanks for your help :)

    isaumya
    Participant

    There is another issue with your theme. Tough I dont know why it is happening. As I use cdn on my site and use wp super cache for enabling my cdn, all the images that are added by using your shortcodes like image, slider etc are not getting a cdn based url, instead showing the normal url.

    I’ve already mentioned this issue to stackexchange but no one is able to help till now. May be you can.

    ahmetsali
    Keymaster

    Hi again, sorry we have no idea about why it is happening. Maybe you can ask it on the plugins support forum.

    isaumya
    Participant

    Its alright man. I already did.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register