Jump to content
micstepl

PL disallows Usage of Shortcodes.

Recommended Posts

micstepl

Pagelines seems to "disallow" the (a) usage and/or (display) of shortcodes.
Specifically I need shortcodes in "description" of "tag/catagory" in order to display images/fontawsome, before a category.

Please can you provide a fix for me to allow. 

Share this post


Link to post
Share on other sites
Audun MB

Shortcodes in general works fine. Not sure what you're trying to do, but if you want to display a fontawesome in front of the category in a post, use CSS like this. (Note: you'll have to add the CSS in your theme as a file for it to work. The PL editor won't work for this for some reason): 

Share this post


Link to post
Share on other sites
micstepl
6 hours ago, Audun MB said:

Shortcodes in general works fine. Not sure what you're trying to do, but if you want to display a fontawesome in front of the category in a post, use CSS like this. (Note: you'll have to add the CSS in your theme as a file for it to work. The PL editor won't work for this for some reason): 

this is not, what i´m searching for.
I made some mock up, to show you more clearly what i´m searching for :)

Actually the whole thing can be solved, by allowing 
- to assign individual images/fontawsome to tags (tag description)
  (or just*: be able to enter them in front of Tag-text)
- to display these in front of tags in tag-lists
 
In my opinion this should be a very, very easy thing. * I find it obsure, that Wordpress or/and Pagelines disallow Fontawsome/Other-Shortcode in the „tag description".
 
Grouping-Idea_001.thumb.jpeg.074c62d24270a714f7a5f66dba76bbf2.jpeg

Share this post


Link to post
Share on other sites
Audun MB

you can do this with CSS. Use the method in the link above for adding icons, but target specific tags with an attribute selector using href as the selector. Something like this:

[href="http://yourwebsite.com/tag/KUNDEN/"]::before{
content: "\f073";
font-family: 'PageLinesFont';
margin-right: 5px;
}

The href has to be the link to the tag archive, and this will only work if the tags actually are links.

  • Like 1

Share this post


Link to post
Share on other sites
micstepl
6 hours ago, Audun MB said:

you can do this with CSS. Use the method in the link above for adding icons, but target specific tags with an attribute selector using href as the selector. Something like this:


[href="http://yourwebsite.com/tag/KUNDEN/"]::before{
content: "\f073";
font-family: 'PageLinesFont';
margin-right: 5px;
}

The href has to be the link to the tag archive, and this will only work if the tags actually are links.

Adun .... your are an Angel!
it Works PERFECT !!!

Thanks so much!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • jeomiland
      By jeomiland+
      Howdi
      Am following a couple of tutorials about making custom shortcodes and making them available in your site. They recommend to make a "my_custom_shortcode.php" file in wp-content folder so it survives Core wordpress and Theme updates. However, they then say to place a couple lines of code in the theme functions.php file. The one in pl-framework theme folder does not look like the best place to put that code and I can't see a shortcodes.php file in the theme.
      So where is the best place and way to add custom shortcodes to a Pl5 project?
      Thanks
      john erik
    • Jason
      By Jason+
      Any chance you can add anchors to the tabs shortcode (similar to ultimate shortcode plugin)?
      Just annoying having to use that plugin rather than pagelines one
       
      <h2>Tabs anchors</h2> [su_tabs] [su_tab title="Tab 1" anchor="First"] Tab 1 content [/su_tab] [su_tab title="Tab 2" anchor="Second"] Tab 2 content [/su_tab] [su_tab title="Tab 3" anchor="Third"] Tab 3 content [/su_tab] [/su_tabs] Use next links to switch this tabs <a href="#First">Open tab 1</a> | <a href="#Second">Open tab 2</a> | <a href="#Third">Open tab 3</a>  
    • Jason
      By Jason+
      Any solution to map section not rendering inside tab shortcode.
      (Map sits inside 3rd tab so map not visible on page load)
      Also this just seems to effect the map section. Map shortcode renders fine.
      I want to use the map section for finer control over markers and locations
      Renders fine if in first page.
       
      Thanks
    • bnapoli
      By bnapoli+
      On my site www.anewbeginning.com the "toggle" function mysteriously stopped working.  I have tried all browsers, tried disabling plugins, removing all the relevant CSS but still cant understand why it isn't working.
      The toggle is placed on this page: http://anewbeginning.com/?page_id=15965 and http://anewbeginning.com/?page_id=10779 but it does not display.
      On my other Platform5 websites, that exact code works fine: see here http://4aa.d11.myftpupload.com/?page_id=123
      Code is the same. Please help, thank you!
    • mrhinsh
      By mrhinsh+
      Guys,
       The ProPricing plugin does not seam to render shortcodes.

       
      I am using WP-Types, and as you can see the shortcode is rendered in the "Elements" but not in the "ProPricing".
      Can we get a fix?
×