1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Adjusting meta to match opengraph on facebook?

Discussion in 'AMS Support' started by beaker, Oct 6, 2019.

  1. beaker

    beaker New Member AMS Premium

    Hi,

    Love the addon! Just a question about the meta. I have AMS set up as my homepage. When I share my main site link on facebook, it's exactly how I want it. I added some og for facebook. It pulls a good title, image and description of the website. But I notice outside of facebook when other systems scrape my primary domain I end up with:

    Screen Shot 2019-10-07 at 12.58.25 AM.png

    Instead of my site name and what not. Do I have any options here, where at the least I can change "Articles" to Site name and "Articles Index" to "Home". Open to suggestions. Thanks!
     
  2. Bob

    Bob Developer Staff Member

    Try setting the AMS meta description and see if that helps.

    Selection_768.png
     
  3. Bob

    Bob Developer Staff Member

    For this one, you'll need to edit a template (easy edit).

    Template: xa_ams_index (or xa_ams_index_modular if using Modular Index).

    FIND (line 1):
    Code:
    <xf:title page="{$page}">{{ phrase('xa_ams_articles') }}</xf:title>

    REPLACE THIS (this is xf template syntax that calls a specific phrase):
    Code:
    {{ phrase('xa_ams_articles') }}

    WITH:

    Either a custom phrase
    Code:
    <xf:title page="{$page}">{{ phrase('your_custom_phrase') }}</xf:title>

    Or raw text
    Code:
    <xf:title page="{$page}">Some Raw Text</xf:title>
     
  4. beaker

    beaker New Member AMS Premium

    I think I'm close.. it still seems to be scraping "Articles" from somewhere after doing the edit:

    Screen Shot 2019-10-07 at 3.53.29 PM.png

    Could the "Articles" text be coming from here?

    Screen Shot 2019-10-07 at 3.58.38 PM.png

    Strangely I can't edit the word "Articles" it won't allow me. Anyway, will wait to see what you think. Or maybe my change is cached and taking a bit to kick in.

    Thanks!

    Last issue was, I notice with proper access, users have the "Add Article" button and that is fine. However for unregistered who do not have access to create an article, the button is gone but there is a decent sized gap of whitespace.

    One option is I remove that button all together and put "Add Article" link in the subnav bar. Whatever the solution, I might need some code as I am not much of a coder. Thanks for the stellar support!
     
  5. Bob

    Bob Developer Staff Member

    Ya, you can't edit the title of a navigation element directly, you need to edit the PHRASE for that specific navigation element (Navigation phrases are prefixed by 'nav.'.

    Filter the Phrase Listing by 'nav.xa_ams' and look for the phrase 'nav.xa_ams'.

    Selection_770.png

    Selection_771.png

    That area is controlled by Core XF (its a special area just for buttons). I'd have to see (actually see the site, not a screen shot) so I can see if the STYLE is not properly handling that (inbox me privately).
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.