Forum Replies Created

Viewing 15 posts - 676 through 690 (of 2,095 total)
  • Author
    Posts
  • in reply to: Embedding Plugin Content Using Shortcode/Shortcoder
    Aakash
    Keymaster

    Hi,

    With Shortcoder plugin, you can create “shortcodes” for frequently used HTML/CSS/JS so that you can reuse.

    Instead of copy pasting the a huge code you can instead use the shortcode.

    If you can set any HTML/CSS/JS as “shortcode content” then shortcoder plugin will work for you.

    Thanks,
    Aakash

    in reply to: taking code from ACF to use in shortcoder
    Aakash
    Keymaster

    Hi Gregory,

    With shortcoder plugin, we can create shortcode HTML, CSS, JS. We cannot pull ACF data using Shortcoder.

    Thanks,
    Aakash

    in reply to: trouble with using a shortcode inside a shortcode
    Aakash
    Keymaster

    The way I suggested is the best way to get it done.

    Since shortcodes are set as attribute values parsing is not working as expected. This is not only shortcoder but for any shortcode. They will be printed as is.

    Another approach I can think is, create city and state shortcode like you have now.
    And for the maps shortcode follow the method I told.

    Now when you want to edit the city and state names, you must edit two shortcodes (maps & city/state). This will be the trade-off.

    in reply to: trouble with using a shortcode inside a shortcode
    Aakash
    Keymaster

    Instead of creating separate shortcodes for city and state. Any reason for this? it is better to use parameters like I mentioned. It works exactly like you want.

    It does not make sense to create shortcodes for simple words.

    WordPress is failing to parse like mentioned earlier. This is for any shortcode not only shortcoder.

    in reply to: trouble with using a shortcode inside a shortcode
    Aakash
    Keymaster

    Hi Stefan,

    Thanks for using Shortcoder.

    I would suggest trying the below format which is very simple. Looks like you are complicating.

    It makes use of “custom parameter” feature.

    Custom parameters

    Inserting shortcode inside attributes is tricky. WordPress is confused and fails to parse.

    Create a single shortcode named maps
    Put this a content

    <div align="center">
    <div class="gmap_canvas"><iframe id="gmap_canvas" src="https://maps.google.com/maps?q=%%city:austin%%,%%state:texas%%&t=&z=13&ie=UTF8&iwloc=&output=embed" width="100%" height="400" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"> </iframe></div>
    </div>

    Here city and state are the custom parameters with default values Austin and texas. These can be changed when using the shortcode.

    Now use the shortcode [sc name="maps" city="denver" state="colorado"]

    That’s it!

    Thanks,
    Aakash

    in reply to: Change title css text colour
    Aakash
    Keymaster

    Hi Terence,

    Can you please share your website URL?
    I’ll share CSS to change the color.

    Thanks,
    Aakash

    Aakash
    Keymaster

    Hi @jefferyclark,

    I’m checking. Seems like a theme problem. I’ll see if I can suggest any workaround.

    Thanks,
    Aakash

    in reply to: Use Logo
    Aakash
    Keymaster

    Hi there,

    Sorry for the late reply. I missed to follow up on this.

    Could you please clarify if you want to set your logo as the image for the button?

    Thanks,
    Aakash

    in reply to: Custom field with –
    Aakash
    Keymaster

    Hi Stan,

    Sorry for the super late reply.

    I guess you are talking about “hypens”?
    Hypens are already allowed. You can pull a custom field which has a hypen like $$custom_field:hello-world$$

    Thanks,
    Aakash

    in reply to: Links don’t work
    Aakash
    Keymaster

    Hi Alicia,

    The “header” element of elementor is displaying over the announcement bar.

    Please check if you can move/configure the header a bit down.

    If there are no options to do that, then I will suggest some CSS to forcefully move it down.

    Thanks,
    Aakash

    in reply to: Access URL parameters
    Aakash
    Keymaster

    Hi @peterburgey,

    Thanks for using Shortcoder.

    I’m sorry to say that this feature is not supported considering it is not safe to display query value directly on the page. Users may execute malicious code which will execute directly on the page.

    I would suggest writing your own shortcode using PHP so that you can clean the query value before working with it – https://codex.wordpress.org/Shortcode_API

    Thanks,
    Aakash

    in reply to: Unable to update Announcer Pro from 5.2 to 5.3
    Aakash
    Keymaster

    That’s strange. Since this is a PRO version, the updates come from aakashweb.com instead of WordPress. The plugin checks if the license key is valid and tries to fetch the new update file.

    I have not received any bugs w.r.t the update system. I’ll keep an eye on this in the next version.

    Thanks,
    Aakash

    in reply to: Unable to update Announcer Pro from 5.2 to 5.3
    Aakash
    Keymaster

    Hi Ian,

    Did you try the “check again” from the Dashboard > Updates page?
    Wordpress should refresh its cache on the updates list after a day.

    Thanks,
    Aakash

    in reply to: Using $$enclosed_content$$ as shortcode attribute
    Aakash
    Keymaster

    Hi Vidur,

    The enclosed content parameter will work differently when it is passed as a value to another shortcode. Making any change would be regressive I guess.

    Ideally, $$enclosed_content$$ is meant for large content like HTML which you can’t pass via an attribute.

    So I would suggest passing the value via attributes.

    Also if possible you can restructure your shortcode content in a way that you are not passing shortcodes as value to another shortcode. Make sure you pass simple values strings, values from the post side. It is also easy to manage.

    You could create multiple shortcodes where the nested shortcode in the content have different values passed.

    Thanks,
    Aakash

    in reply to: Problem with footnote
    Aakash
    Keymaster

    Hi Vivaldo,

    I see that you have started a topic on Print friendly WordPress forum.
    https://wordpress.org/support/topic/footnote-2/

    Please give me some time, I’ll go through their docs and see if I can suggest some code for you so that you can continue to use the print-friendly button along with WP Socializer.

    Thanks,
    Aakash

Viewing 15 posts - 676 through 690 (of 2,095 total)

Subscribe to our Newsletter

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

By using this website, you agree to our Terms