I installed and enabled flags today. When I configured, I saved the configuration page prior to finishing adjusting the options. When I went back in and continued to make adjustments, I decided that I would rather have the normal link as opposed the JavaScript link, so I changed this option. Now, I have both the text link and an actual button showing up.

I also selected the option to manage where the link showed up, as I have display suite enabled. There is only one Flag:Bookmark field showing up here, and it is the normal text link. When I move that around, the button link remains at the bottom of the content...the class is the same for both, so I can't just hide the button and forget about it.

I've cleared cache, I've double checked my configuration, I don't see anything that would cause this button to remain after I've selected the "normal" link instead. Ideas?

Comments

Kristi_06 created an issue. See original summary.

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

> Now, I have both the text link and an actual button showing up.

I'm confused -- what do you mean by a button?

Kristi_06’s picture

StatusFileSize
new10.54 KB

I'm including a screenshot - as you can see at the top, there is a text link...at the bottom, there is a button that is appearing as well.

joachim’s picture

Hmm, Flag doesn't output anything like that!
Do you maybe have other flag-related modules? or a theme that's styling that?
Can you look at the HTML to figure out what that button thinks it is -- eg is it part of the node links?

Kristi_06’s picture

I have Flag and Flag Bookmark enabled, that's it.

Here is the code for the normal link:

<div class="content clearfix">
      <div class="flag-outer flag-outer-bookmarks">
<span class="flag-wrapper flag-bookmarks flag-bookmarks-82">
      <a href="/flag/flag/bookmarks/82?destination=node/82&amp;token=rrqg6zy9mfNnnLq6SmVoAN1bKptxx5bQWs8azsvQrgE" title="Add this post to your favorites" class="flag flag-action flag-link-normal" rel="nofollow">Add to Favorites</a><span class="flag-throbber">&nbsp;</span>
    </span>
  </div>

Here is the code for the button:

<div class="clearfix">
          <nav class="links node-links clearfix"><ul class="links inline"><li class="flag-bookmarks first last"><span><span class="flag-wrapper flag-bookmarks flag-bookmarks-82">
<code>      <a href="/flag/flag/bookmarks/82?destination=node/82&amp;token=rrqg6zy9mfNnnLq6SmVoAN1bKptxx5bQWs8azsvQrgE" title="Add this post to your favorites" class="flag flag-action flag-link-normal" rel="nofollow">Add to Favorites</a><span class="flag-throbber">&nbsp;</span>
    </span>
</span></li></ul></nav>
    
      </div>

As you can see, the two codes are almost identical, which made me think that the button was being output by the flag module...especially because its using the same text as what I have configured in the bookmarks module...if I change that text, the text on the button changes as well.

joachim’s picture

Ok so the button is being output by the node links, so yes, it's Flag. It must be your theme that's making it look like a button maybe?

Have you definitely disabled the flag from showing in entity links?

Kristi_06’s picture

How do I disable the flag from showing in entity links?

joachim’s picture

There's a set of checkboxes in the settings for your flag.

Kristi_06’s picture

Found it - I guess I assumed that checking those boxes indicated where I wanted the link to show up! Thanks for pointing that out!

joachim’s picture

Status: Postponed (maintainer needs more info) » Fixed

They do, but they control the link showing as an item in the 'node links'.

Glad you've got it sorted.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.