Forum Replies Created

Viewing 15 replies - 1 through 15 (of 426 total)
  • Plugin Author dmccan

    (@dmccan)

    He @gedinfo – Thank you very much for sharing this.

    Plugin Author dmccan

    (@dmccan)

    Hi @frankpereiro – This code snippet will enable manual excerpts. I’m not sure if the RSS feed will pick that up automatically or if your theme has to support it.

    function yadawiki_add_excerpt_support_for_pages() {
    add_post_type_support( 'yada_wiki', 'excerpt' );
    }
    add_action( 'init', 'yadawiki_add_excerpt_support_for_pages' );

    Best regards, David

    Plugin Author dmccan

    (@dmccan)

    Hi @aikker – I hope you are well. I see on this page: https://liblivadia.gr/wiki/blouti-karatzali-niki/

    a wiki link as in the screenshot: https://share.zight.com/E0uNj6zz

    The URL for that link is: https://liblivadia.gr/wiki/oi-tycheroi-ena-diigima-tis-nikis-blouti-karatzali/

    It looks like that link has had the Greek characters changed out. Are you using a plugin to do that or is WordPress doing that on its own?

    It goes to the page, so the first wiki link is working: https://liblivadia.gr/wiki/oi-tycheroi-ena-diigima-tis-nikis-blouti-karatzali/

    However, in the title of that page I see part of it is red and I think that red is from Yada Wiki. https://share.zight.com/d5uQR8Pp

    Is that all that is wrong, that the title is red? Or are you trying to make part of that page title a link also?

    Yada Wiki makes a non-clickable red span like that when it doesn’t find the page title when trying to query the database using the “link” parameter. Maybe the quotes and the comma are the issue? Does it work OK for some wiki links but not others? If so, what do the non-working ones have in common?

    Given what I’ve said above, can you help to explain the problem more please?

    Plugin Author dmccan

    (@dmccan)

    Hi @jfbprivate – This is the direction I’m going: When you click the Wikilink Popup there will be a checkbox for adding a class.

    https://share.zight.com/NQuno2DP

    When checked then it will add another parameter to the shortcode:

    [yadawiki link="Quote Test" show="It is a quote" class="wikilink-custom-class"]

    On the wiki link for the page a class of “wikilink-custom-class” will be added. If you want to, you can type over the default “wikilink-custom-class” to add a different class name (lowercase and dashes only) and it will add that to the link instead.

    You can then add to the Customizer or a stylesheet the CSS for “.wikilink-custom-class“.

    Does that sound good?

    Plugin Author dmccan

    (@dmccan)

    Yes, you can export / import the Wiki articles and it will copy over the wiki tags and taxonomy entries also. Just install the plugin on the new site first and you can use the built in WP functionality.

    Plugin Author dmccan

    (@dmccan)

    @cmintoff – I’m glad that you are finding it useful. Thank you for letting me know.

    Plugin Author dmccan

    (@dmccan)

    @jfbprivate – Will do, and I’ll see if I can find how Wikipedia does it.

    Plugin Author dmccan

    (@dmccan)

    @jfbprivate – Good sleuthing to figure this out. Sorry it took so long. I think that is the way shortcodes work. In January I plan to work on an update and perhaps could add an optional parameter to italicize the display link. If something like that would help please let me know.

    Plugin Author dmccan

    (@dmccan)

    @jfbprivate – Could you share please how you are creating the tables? Thanks

    Plugin Author dmccan

    (@dmccan)

    Thank you for clarifying about the page title. I was thinking that was within the shortcode only. I didn’t realize you were actually giving pages a name with ems in the title. For what it is worth, that as a practice doesn’t seem good to me and I think people would advise using CSS to style the actual page title.

    In any event, I created a page with ems in the title and the reason why when you include that page in a wiki shortcode (without the extra ems) is that the actual page title is with ems, if that makes sense. So that is why manually adding them into the wiki tag you get a working link on the frontend.

    I created a page with ems in the title, and then a wiki shortcode to that page with the ems manually added in. That worked fine on the front, and in the toc, index page, and category list.

    I created another page with ems in the title, and then a wiki shortcode to that page with the ems manually added in. I then switched to the text editor and pasted in the table code from above, but without the shortcode and instead just added a word in its place. I switched back to the visual editor and copied the shortcode with the link to the page with the ems as a title and with the ems added manually, switched back to the text editor and pasted that in. Saved. When viewing that on the frontend the table showed, the wiki link showed italicized, and the link worked. Perhaps you are generating your tables somehow that is playing a role.

    Plugin Author dmccan

    (@dmccan)

    @jfbprivate – I’m sorry you are feeling some frustration.

    For what it is worth, I was able to output a regular wiki link in a table and have it italicized and working. Here is the code:

    <table>
    <tbody>
    <tr>
    <td><em>[yadawiki link="Beaver Builder" show=""]</em></td>
    </tr>
    </tbody>
    </table>

    For me, to get it to work it needed to be edited in the Text tab of the classic editor, not the visual tab.

    Although it worked, I imagine the various steps you have to take aren’t a very nice workflow.

    The reason I asked my question earlier is if there are some rules then maybe we could find a way to add a CSS class that you could target. Since the CSS I provided earlier works in all three cases, if you could add a class to the wiki links you want italicized then it seems like that might solve your problem. I expect you could also add quotes using CSS. Although I am busy now, at some point in the next version I could find a way for you to add a custom class to wiki links when you wanted to, i.e. perhaps another optional parameter. However, I guess you need more fine grained control.

    The TOC is its own page and the way that works is that the code to output the TOC shortcode content does a query to get the ID for a page with that name, uses a WP function to get the page content and output that content.

    apply_filters( 'the_content', $the_toc->post_content )
    Plugin Author dmccan

    (@dmccan)

    You didn’t quite answer my question, but here is CSS to italicize all wiki links. I hope it helps.

    .wikilink-published {
    font-style:italic;
    }

    .ywcolumn > .wikicatlink {
    font-style:italic;
    }

    .wiki-cat-list > .wiki-cat-item > .wiki-cat-link {
    font-style:italic;
    }

    Plugin Author dmccan

    (@dmccan)

    Are there cases where you don’t want the link to be italicized? If so, what are they please?

    Plugin Author dmccan

    (@dmccan)

    Wiki links have a CSS class. Can you target that to apply the style?

    Plugin Author dmccan

    (@dmccan)

    Hi @aikker – That is a nice looking theme. Unfortunately I don’t own it and there isn’t a free version. Looking at their docs it seems like on posts the title shows on the featured image. Just as an experiment you could try uploading a featured image for a wiki post and see if it showed the title. In case you don’t see the option for a featured image, the option can sometimes be hidden. Here is a screenshot showing where the option is: https://share.zight.com/wbuqBBe7

    Yada Wiki doesn’t suppress the title or anything like that. I see the titles on my test site. This is a theme option. If you are comfortable with code, you could create a template as you suggested and customize it as you want.

    I hope this helps.

Viewing 15 replies - 1 through 15 (of 426 total)