Comments (4)
There are some tags accepted inside H1 and H2. Example: , , .
To make it work on your case you should transform it from:
<h1><em>Mommy</em>, Xavier Dolan</h1>
to:
<h1><i>Mommy</i>, Xavier Dolan</h1>
To make it happen, just add the bellow lines to your rules.json file.
{
"class": "ItalicRule",
"selector" : "em"
}
from facebook-instant-articles-sdk-php.
Thanks for your answer ! Could you point me in the right direction to do this properly ? I guess I have something to add in my functions.php
file ?
EDIT : never mind, I forgot about the last option in settings screen.
EDIT 2 : should I wait after adding the custom rule ? The feed still displays <em>
instead of <i>
.
Just to be perfectly clear, here's what I have :
from facebook-instant-articles-sdk-php.
Now that the feed has been updated, I can confirm this setting does not work. I still have titles like this one :
<h1><em>Théo & Hugo dans le même bateau</em>, Olivier Ducastel et Jacques Martineau</h1>
If you can help me debug this… :-)
Feed URL, if it helps : https://voiretmanger.fr/feed/instant-articles/
from facebook-instant-articles-sdk-php.
OK, so I see now that I made a mistake in the format. I think it is correct now like this :
{ "rules": [{ "class": "italicRule", "selector": "em" }] }
Can you confirm it's OK ? And if it is, it does not work, unfortunately…
from facebook-instant-articles-sdk-php.
Related Issues (20)
- Failed Connection with graph.facebook.com HOT 2
- Handling of Ads Settings fields
- Support paragraphs inside Blockquote
- FAN on AMP? HOT 2
- Validate Analytics Configuration
- Installation problem on laravel 5.6 HOT 1
- RTL problem HOT 2
- Unable to use ConstantGetter with InteractiveRule HOT 4
- autoplay video in fullscreen HOT 1
- Transformer's transform method does not account for settings
- Problem in rule "multiple" - IA HOT 3
- Query params in related articles
- [BUG] : Problem with the Span and Anchor Rule
- Travis CI Php 5.5 and Php 5.4
- Fetch
- Integration in Symfony 5 is not possible because of css selector version in composer.json HOT 1
- FBInterstitialAd is gives all time "server error"
- support php 8 HOT 2
- Use InstantArticleInterface instead of InstantArticle as parameter type for Transformer methods
- How to create a scheduled facebook instant article through PHP SDK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-instant-articles-sdk-php.