• Resolved Jason

    (@jayclimbsrocks)


    I would like to change the word “Categories” on the dropdown toggle to say something else. In my case, I want it to say “Room Number” as this is the way that the events are actually organized. Could anyone please point me in the right direction? I have been picking through the files for the plugin, but I think that what I really need is some CSS that targets and changes it. I do know that the class is ai1ec-dropdown-toggle.

    Any help is greatly appreciated.

Viewing 14 replies - 1 through 14 (of 14 total)
  • I have to do that with my site…
    I have to change 2 different pages to change the words I want.
    I change it in to plugin files.
    So when I update, I have to go in and fix it again.
    I use Note Press on the site so I don’t have to remember where and what I need to change each time.
    It would be nice to have a language file or a selection in settings.

    I have suggested that but it hasn’t got enough votes for them to add it.

    Here is a way to do it… But I think just changing the plugin is way easier.
    https://css-tricks.com/swapping-out-text-five-different-ways/

    Thread Starter Jason

    (@jayclimbsrocks)

    Hey thanks for the reply rbrown. That is interesting stuff, but I am actually just trying to replace the text in the button with something else. Doesn’t need to change on click.

    I haven’t tried this yet… but this may work…
    https://writenowdesign.com/blog/wordpress/wordpress-how-to/how-to-modify-wordpress-language-files/

    In
    all-in-one-event-calendar/language
    are the .mo and .po files

    You may be able to change it there…
    I’m going to try it…

    Thread Starter Jason

    (@jayclimbsrocks)

    Now that is an interesting thought. I’m going to give it a go as well.

    using Say What didn’t work…
    I think cause the AI1EC_PLUGIN_NAME isn’t quoted…
    and in the po files I saw the categories button, but not what I need to change.
    So that may help you.

    Thread Starter Jason

    (@jayclimbsrocks)

    Would you give me a little more direction on where you saw the button? There are quite a few po files in plugins/all-in-one-event-calendar/language

    all-in-one-event-calendar-en_GB.po
    language is at end uses Google translation type abbreviations.

    • This reply was modified 7 years, 9 months ago by rbrown56.
    Thread Starter Jason

    (@jayclimbsrocks)

    No luck with language replacement. I have found where the word via inspect element:

    https://tinypic.com/r/11iojs3/9

    I edited it in the element inspector and saw it change, but of course that doesn’t affect what anyone else sees. I’m just not really sure where that bit of code lives…

    • This reply was modified 7 years, 9 months ago by Jason.
    • This reply was modified 7 years, 9 months ago by Jason.
    Thread Starter Jason

    (@jayclimbsrocks)

    In case anyone else is ever trying to do something like this here is how I ended up doing it:

    .ai1ec-dropdown-toggle {
    text-indent: -9999px;
    line-height: 0; /* Collapse the original line */
    }

    .ai1ec-dropdown-toggle::after {
    content: “Whatever you want it to say.”;
    text-indent: 0;
    display: block;
    line-height: original; /* New content takes up original line height */
    }

    I found it for you…
    wp-content/plugins/all-in-one-event-calendar/app/view/calendar/view/agenda.php

    Line 207

    'text_categories' => __( 'Categories:', AI1EC_PLUGIN_NAME ),

    I have been busy with my clients…

    Hi @jayclimbsrocks,

    Apologies for the delay in responding to your inquiry. We’ve updated the calendar and have issued several bug fixes with the newest releases for our WordPress Core Plugin, as well as our hosted calendar versions.

    If you are still experiencing difficulty or for faster assistance, please login to your Timely account and click on the “Get Help” link. You may also reply to this ticket, or open a new ticket.

    This ticket is still open. Do anyone have an answer to this post questions or did I miss it?

    I sent a ticket.

    I change categories.twig (in wp-content/plugins/all-in-one-event-calendar/public/themes-ai1ec/vortex/twig/) to –

    ...
    			data-href="{{ clear_filter }}"
    			{{ data_type | raw }}
    			title="{{ text_clear_category_filter }}">
    			<i class="ai1ec-fa ai1ec-fa-times-circle"></i>
    		</span>
    		Venues
    		<span class="ai1ec-caret"></span>
    	</a>
    ...

    and, similarly, tags.twig (same location) to –

    ...
    			{{ data_type | raw }}
    			title="{{ text_clear_tag_filter }}">
    			<i class="ai1ec-fa ai1ec-fa-times-circle"></i>
    		</span>
    		Activities
    		<span class="ai1ec-caret"></span>
    

    Works for me, but I have a very simple set-up with no calendar feeds so I have no idea if it might introduce problems there.

    • This reply was modified 7 years, 1 month ago by dday61.

    @slumpshop

    If you submitted a ticket, you will be responded to in priority sequence through the ticket system.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Trying to change wording of Categories button’ is closed to new replies.