rawzef
Forum Replies Created
-
Forum: Plugins
In reply to: [Instant Articles for WP] Correct Transformer rule for [caption] shortcodeim back! so I figured it out how to work with the captions but Im having some trouble again with shortcodes, with earlier versions the code was translated to <> tags, now it keeps as [] so its more difficult to translate since FBIA takes the []shortcodes as text and I cant figure out how to properly define the selector, this is my case:
SHORTCODE
[tw_heading size="waves-shortcode" text="TITLE TEXT" weight="300" style="normal" position="center"][/tw_heading]SOURCE MARKUP
<p>[tw_heading size=”waves-shortcode” text=”TITLE TEXT” weight=”300″ style=”normal” position=”center”][/tw_heading]</p>TRANSFORMED MARKUP
<p>[tw_heading size=”waves-shortcode” text=”TITLE TEXT” weight=”300″ style=”normal” position=”center”][/tw_heading]</p>so as you can see, the []tags are taken as text not as selectors, does anyone have any solution to this? 🙁
Worst case escenario, what I did is go to facebook and my instant articles and edit the code and just add data-feedback… I know this is not how it is supposed to be but its the only solution I found 🙁
Forum: Plugins
In reply to: [Instant Articles for WP] Correct Transformer rule for [caption] shortcodeHi! I don’t know if you solved this, but somehow I figure it out, I HAVE NO IDEA HOW IT WORKS, BUT IT DOES!
I added a separate rule just for the captions:
{
“class”: “CaptionRule”,
“selector” : “p.wp-caption-text”
}For some reason wordpress change takes the P instead of the DIV so if your markup shows div, then switch the p for the div, it should work.
Also I am trying to figure out how to add automatically likes and comments options, any ideas? Thanks
I need these rules too!!! I’ve tried everything, I am starting to learn how to write rules but is really complex, eventho I wrote many rules succesfully but those about likes, comments and related articles can’t seem to work for me, can anyone please give a little help? Thank youu