Forum Replies Created

Viewing 15 replies - 16 through 30 (of 34 total)
  • Thread Starter jcpacelli

    (@jcpacelli)

    Hi, sorry for resurrecting an old thread, but I’m running into the same issue with the fontawesome icons not displaying on a different feed. Can you elaborate with how i go about displaying the proper fontawesome version?

    Thanks

    You’re right, they don’t. I finally got to the bottom of how they work on my site. The was I understand it is this:
    Instant Articles match a lot of default WordPress functions so they display properly. But, a lot of themes don’t adhere to the default WordPress functions. Therefore, Instant Articles has no idea what “awesome-gallery-edit-wrapper” is (in the OP’s case).
    So to allow compatibility with most themes, classes, shortcodes, etc., they created the ability to make Custom Transformer Rules which tell Instant Articles what “awesome-gallery-edit-wrapper” is.
    So, in my case, Instant Articles didn’t know what a couple of my shortcodes were, so I had to tell it what they were or simply tell them to ignore it. You match your selectors to their predefined Transformer Rules

    Here are my custom transformer rules:

    { "rules": [ { "class": "PassThroughRule", "selector" : "span.dropcap" }, {
     "class": "AnchorRule",
     "selector": "a",
     "properties" : {
       "anchor.href" : {
         "type" : "string",
         "selector" : "a",
         "attribute": "href"
       }
     }
    }, {
            "class": "LineBreakRule",
            "selector": "br"
        }, { "class": "SlideshowImageRule", "selector" : "dl.gallery-item",
     "properties" : { "image.url" : { "type" : "string",
     "selector" : "img", "attribute": "src" },
     "image.caption" : { "type" : "element", "selector" : "gallery-caption" } } } ] }

    So, to explain that code, the first one is only telling Instant Articles to ignore my span.dropcap selector, using the PassThroughRule. The second one is telling IA that my a is a link, using their AnchorRule. Notice there are also properties associated with that portion of code. Some of IA’s rules take parameters, and in this case, all that is doing is specifying what the type is, etc. Third one is just telling IA that my br selector = LineBreakRule. The fourth one is just like the AnchorRule from above. It’s just telling IA that my dl.gallery-item is a slideshow image using IA’s SlideshowImageRule. The properties of that one just define which selector = the image.url and the image.caption.

    It seems a lot more complicated than it really is. Just pay attention to the syntax when making your custom transformer rules. ie, “class” is not your CSS class, it’s IA’s predefined Transformer Rule.

    jcpacelli

    (@jcpacelli)

    Any luck on this? Also having a similar issue

    jcpacelli

    (@jcpacelli)

    Any updates to this? Also having shortcode issues. Theyre displaying as straight text.

    Thread Starter jcpacelli

    (@jcpacelli)

    Sorry to resurrect an old thread but I discovered an interesting issue regarding the way I have these description lengths setup. I have the description set to have a max of 4 lines but on mobile, when tapping the excerpt, it compresses down to one line and then you must tap it again for it to fully expand the description.

    I tried changing it to only show 1 line to begin with but then, when tapping, it shifts the text and then you must tap it once more to expand the description fully.

    Any suggestions?

    Thread Starter jcpacelli

    (@jcpacelli)

    Yeah, they aren’t working for some reason. But I decided to go a different route. I’m just linking straight to IG from a click instead of dealing with the lightbox. I had a hell of a time making the info box actually responsive. I’m showing 4 lines of the caption and on mouseover, the full caption is displayed. Here’s my code I’m using for the concatenation of the ellipsis as well. I found this is the best solution.

    #wdi_feed_0 .wdi_photo_title{
    	overflow:hidden;
    	position:relative;
    	line-height:1.5em;
    	max-height:6em;
    	text-align:justify;
    	margin-right:-1em!important;
    	padding-right:1em;
    }
    #wdi_feed_0:hover .wdi_photo_title:hover{max-height:100%;}
    #wdi_feed_0:hover .wdi_photo_title:hover:before{content:'';}
    
    #wdi_feed_0 .wdi_photo_title:before{
    	content:'…';
    	position:absolute;
    	right:.4em;
    	bottom:0;
    }
    #wdi_feed_0 .wdi_photo_title:after{
    	content:'';
    	position:absolute;
    	right:0;	
    	width:1em;
    	height:1em;
    	margin-top:.2em;
    }
    .wdi_layout_ms .wdi_photo_title{
    	margin-left:3%!important;
    }
    .wdi_layout_ms:hover .wdi_photo_title:hover{
    	margin-left:5%!important;
    }
    • This reply was modified 9 years, 1 month ago by jcpacelli.
    Thread Starter jcpacelli

    (@jcpacelli)

    yes, the link is here: http://www.communityfirstmc.com/carology/

    i’ve checked their colors and tried changing them. they should be white over a red background. I’ve got the Container Opacity at 80% and the Button Opacity at 100%

    Seems that the only link that is working (but still not visible) is the Open in IG link. The mouse doesn’t find the controls, info, fullscreen, etc. buttons

    Thread Starter jcpacelli

    (@jcpacelli)

    Well, for anyone else that would like to do this, here is the code that I figured out for it:

    #wdi_feed_0 .wdi_photo_title{
    	overflow:hidden;
    	position:relative;
    	line-height:1.5em;
    	max-height:6em;
    	text-align:justify;
    	margin-right:-1em!important;
    	padding-right:1em;
    }
    #wdi_feed_0 .wdi_photo_title:before{
    	content:'...';
    	position:absolute;
    	right:.4em;
    	bottom:0;
    }
    #wdi_feed_0 .wdi_photo_title:after{
    	content:'';
    	position:absolute;
    	right:0;	
    	width:1em;
    	height:1em;
    	margin-top:.2em;background:white;
    }
    .wdi_layout_ms .wdi_photo_title{
    	margin-left:3%!important;
    }
    Thread Starter jcpacelli

    (@jcpacelli)

    Yes, I’d like to truncate the description and append with an ellipses after X amount of lines or characters. Either way would work for me

    Thread Starter jcpacelli

    (@jcpacelli)

    Thank you! That fixed that part of the issue; the images are now displaying. However, I suspect there may be another issue because the FancyBox lightbox, for example, doesn’t load at all. After inspecting, there are still the same jQuery errors.

    I also can’t seem to get the ‘Buy’ button to display on any of the lightboxes. Is this because I am still in the SmugMug trial (I realize this may be a dumb question and I do plan on subscribing provided I can get all this to work)

    Thanks in advance for your help

    Did you ever figure this out? I too am looking to do something similar.

    Thanks,

    -John

    Did you ever find a solution to this? I too would like to accomplish something similar.

    -John

    Thread Starter jcpacelli

    (@jcpacelli)

    I figured it out. Had to edit my functions.php file to not have Disqus override woocommerce reviews.

    Thank you for your time.

    Thread Starter jcpacelli

    (@jcpacelli)

    My site is under construction but I’ve linked to a screenshot of my product page.

    http://www.therevrepublic.com/wp-content/uploads/2015/01/Screen-Shot-2015-11-12-at-12.02.00-PM.png

    I had the same issue and Theme Options now shows after installing the Virtue Toolkit plugin but clicking Theme Options brings me to an error page. “Page not Found”

    The URL it sends me to is:
    http://www.therevrepublic.com/wp-admin/admin.php?page=ktoptions

Viewing 15 replies - 16 through 30 (of 34 total)