Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    Hi @nicotn,

    Are you using our Button element?

    Or are you using a shortcode to create a button inside cell?

    Please let me know.

    Regards.

    Thread Starter nicotn

    (@nicotn)

    Hi,
    I’m using a shortcode to create a button inside cell.

    Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    @nicotn,

    We will look into it and come up with a fix as soon as possible.

    I will let you know as soon as we have a fix.

    Regards.

    Plugin Contributor erdembircan

    (@erdembircan)

    Hello @nicotn,
    So sorry to hear you are having problems with that issue. We are looking into it, but we need more information in order to further examine the problem on our part. So far, we couldn’t find a situation on our part that adds this ufeff (BOM) part, it may be related to shortcode you are using. Are you using a plugin for generating that shortcode or using your own implementation? Thank you for your help.
    Regards.

    Thread Starter nicotn

    (@nicotn)

    Hi,
    Thanks for your concerns.

    I use my on implementation, this is the code below.

    function button($atts, $content = null) {
     	extract(shortcode_atts(array(
     		 'link' => '#',
     		'color' =>'green',
     		'position' => 'center',
     		'width' => '100',
     	), $atts));
    
     	switch ($position) {
     		case 'center':
     			$position = 'mx-auto';
     			break;
     		case 'left':
     			$position = 'ml-0 mr-auto';
     			break;
     		case 'right':
     			$position = 'ml-auto mr-0';
     			break;
     		default:
     			$position = 'mx-auto';
     			break;
     	}
    
            return '<a class="btn custom-btn custom-btn-'.$color.' d-block w-'.$width.' my-2 '.$position.'" href="'.$link.'" target="_blank">' . do_shortcode($content) . '</a>';
    }
    add_shortcode('button', 'button');
    

    and the shortcode in tablebluider cell

    [button color="orange" link="https://www.myexample.org" width="75"] Découvrir [/bouton]

    • This reply was modified 4 years, 4 months ago by nicotn.
    • This reply was modified 4 years, 4 months ago by nicotn.
    Plugin Contributor erdembircan

    (@erdembircan)

    Hello @nicotn,

    We used your short-code implementation, made tests, but unfortunately couldn’t reproduce the issue you are having. But we have a couple of advises that may solve this:

    1. Be sure your short-code in table builder is valid, because the one you have supplied above has a typo in its closing tag
    2. You are using name button as the tag of your short-code, this may cause bugs with any other plugin that decides to use the same name as a short-code too and results in unwanted behavior. Instead of using button, prefix it with a unique string like nico-button and try again.
    3. There is a big probability a third party plugin may be intercepting your anchor element hrefs which reformats them. Be sure to test your code in a test environment with minimal plugins enabled.
    4. Also, if you can supply us with a live site url that you are having this issue, we will be happy to inspect the live site.

      Best regards and have a great day!

    • This reply was modified 4 years, 4 months ago by erdembircan.
    Thread Starter nicotn

    (@nicotn)

    Hi !
    1 – I renamed shortcodes in english for this topic and did a mistake. The typo is good in table builder.
    2 – And has an unique name .

    Right now, I don’t have time to search longer because the delivery deadline is very close. I’ll do it differently for this time.

    Thank’s for your concerns and your plugin !

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcodes button in table – URL rewrite’ is closed to new replies.