Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author piccart

    (@piccart)

    Hello, and thank you for using my plugin!

    I see what you mean and I’m going to add this in the next update. though I will wait a bit before publishing a new version, in order to see if there is the need of any bug fix or other small features addition.

    In the meanwhile, if you’re going to use the widget with the same introduction text for each place where you put it, you can easily customize the output template file.

    you’ll need to access your site files (with ftp by instance). then browse the folder:
    wp-content/plugins/wp-list-pages-by-custom-taxonomy/templates

    copy the file:
    pbytax_template.php

    and put the copy into your theme folder (something like wp-content/themes/your-theme-name/ )

    edit this copy and scroll down till you see this comment
    //// THE LOOP STARTS HERE,
    // HERE YOU COULD EDIT THE HTML STRUCTURE OF THE OUTPUT

    go down a couple of lines, and add whatever you want just above the line where you see:
    <select class="pbytax-dropdown" id="pbytax-selector" onchange="location = this.options[this.selectedIndex].value;">

    everything placed above that line, and after the ?> will be printed just above the dropdown.

    I suggest to wrap your text into a -p- tag, like:

    <p> Your introduction text here </p>

    let me know if you managed to do it or need more help

    cheers!

    Thread Starter waynehuang

    (@waynehuang)

    Thank you! It worked fine. ??

    Plugin Author piccart

    (@piccart)

    Great!

    In any case, I will release a new version in a couple of weeks and it’ll have a field for text/html, so eventually you could add a different text in each widget if you need to.
    (just remember to delete your edited file after the update, so that the plugin will pick the new default template rather than yours)

    p.s. if you like the plugin, please consider to vote and review it. it’ll be very appreciated. ??

    cheers!

    Plugin Author piccart

    (@piccart)

    Hello Wayne,

    just wanted to inform you that I’ve released the new version (1.2.1) in which there is a textarea field to eventually add arbitrary text or html that will be placed just above the list.
    in this way you could add a different text above each of the widgets that you have placed.

    after you update the plugin, remember to delete the template file that you have into your theme folder, so that the plugin will pick the new default one and print out the textarea field.

    cheers!

    Thread Starter waynehuang

    (@waynehuang)

    Awesome. Thank you for your work on this!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Suggestion: Field for arbitrary text/HTML’ is closed to new replies.