-
AuthorPosts
-
jmcelroy Friend
jmcelroy
- Join date:
- October 2013
- Posts:
- 10
- Downloads:
- 0
- Uploads:
- 6
- Thanked:
- 1 times in 1 posts
December 9, 2014 at 12:07 am #203413I’d like to show a few small buttons in the intro text area of the articles on the frontpage. It doesn’t work and certain stylings don’t work either, like lines
<li>line</li>
I want to have custom styling and images/link available in the intro text, any help would be great.
Love the template, I renewed membership for it when I saw it was for members now. Thanks for any help.
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
December 9, 2014 at 2:41 am #557933Hi there
Would you mind provide some more detail about issue with live URL and screenshot ?Thank you,
Viet VUjmcelroy Friendjmcelroy
- Join date:
- October 2013
- Posts:
- 10
- Downloads:
- 0
- Uploads:
- 6
- Thanked:
- 1 times in 1 posts
December 9, 2014 at 4:56 am #557956It’s a on a dev site, and it’s not really an issue, just something I’d like to do that seems practical for the templates use.
You can see the article intro text in the popup has the dots for lines. But in the front page view the lines and formatting doesn’t show up.
Also, in the intro text I would like to be able to put small images that are linkable in the intro text. These do not show up on the frontpage intro text when setting them.
jmcelroy Friendjmcelroy
- Join date:
- October 2013
- Posts:
- 10
- Downloads:
- 0
- Uploads:
- 6
- Thanked:
- 1 times in 1 posts
December 10, 2014 at 8:56 pm #558215so, there is no code I can edit, change, add, or takeaway to make this happen?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 10, 2014 at 8:59 pm #558217If I am correctly understanding what you are trying to accomplish,here are some resources which may be of assistance to you . . . . .
http://techforluddites.com/replacing…ges-using-css/
http://stackoverflow.com/questions/1…t-item-element
http://blog.iconfinder.com/how-to-ad…ss-and-base64/
http://webdesign.about.com/od/css/a/aa012907.htm
http://www.cssbakery.com/2012/08/css…n-sprites.html
jmcelroy Friendjmcelroy
- Join date:
- October 2013
- Posts:
- 10
- Downloads:
- 0
- Uploads:
- 6
- Thanked:
- 1 times in 1 posts
December 10, 2014 at 9:04 pm #558218Thanks, I’ll start checking them out.
jmcelroy Friendjmcelroy
- Join date:
- October 2013
- Posts:
- 10
- Downloads:
- 0
- Uploads:
- 6
- Thanked:
- 1 times in 1 posts
December 10, 2014 at 9:07 pm #558219Actually, checking them, it isn’t what I want. The bullets don’t even show up on the frontpage, and thats the problem. They show up in full article view, but not in the frontpage view. In my image you can see in article view the bullets are there in the readmore area, but on the frontpage they don’t show.
But I also want to show images in the readmore and link them, not replace bullets with images.
Seems the readmore on frontpage view is text view only, you can’t have anything but text for custom styling in there. I’d like to change this.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 11, 2014 at 9:23 am #558291You can find the code for stripping tags in this file: templatesja_walltemplate_tools.php
Look for this function:
public static function extractFirstParagraph($text){
static $regex = '#<p[^>]*>(.*)</p>#i';
static $allowtag = '<a><b><strong><br><li>';
Add <li> or any other HTML tag into allowable tags list as above
Remember to clean cache then.
jmcelroy Friendjmcelroy
- Join date:
- October 2013
- Posts:
- 10
- Downloads:
- 0
- Uploads:
- 6
- Thanked:
- 1 times in 1 posts
December 11, 2014 at 8:49 pm #558421Sorry, this reply didn’t show in my email.
But I just took out the strip tag in the blog_item.php so it doesn’t strip anything since I want images, images with links, and html in the introtext as well. It worked for everything needed.
<em>@Saguaros 457087 wrote:</em><blockquote>You can find the code for stripping tags in this file: templatesja_walltemplate_tools.php
Look for this function:
public static function extractFirstParagraph($text){
static $regex = '#<p[^>]*>(.*)</p>#i';
static $allowtag = '<a><b><strong><br><li>';
Add <li> or any other HTML tag into allowable tags list as above
Remember to clean cache then.</blockquote>
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 4 voices, and was last updated by jmcelroy 9 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Make intro text show images and links
Viewing 9 posts - 1 through 9 (of 9 total)