Skip to:
Content
Pages
Categories
Search
Top
Bottom

Nav issue with nouveau theme – social articles plugin


  • onlinedog123
    Participant

    @onlinedog123

    wp 4.9.6
    bp 3.0.0
    plugin ‘social articles’

    Hey,

    I’m exploring the nouveau theme on localhost and have come across an issue that might be of interest for you, and maybe someone has a solution. The problem is that in the top- and subnavigation of bp the last letter is not being displayed for the plugin, i.e. instead of “Articles” it says “Article”, instead of “Under Review” it’s “Under Revie” and so on. When switching to the legacy bp theme this issue does not occur. Thanks for helping!

Viewing 3 replies - 1 through 3 (of 3 total)

  • Varun Dubey
    Participant

    @vapvarun

    @onlinedog123 Check once with Social Article support.


    onlinedog123
    Participant

    @onlinedog123

    Thank you @vapvarun, I have done that already, I was just wondering if anyone here had seen something similar and would be able to point me towards a solution.


    onlinedog123
    Participant

    @onlinedog123

    Hey friends,

    not sure if that’s interesting to anyone here, but I found out what the problem caused and a quick fix. In the file ‘social-articles-load.php’ the following lines cause the problem:

    top nav
    
    $name =  sprintf( __("Articles", "social-articles").'<span class="sa-global-counter">%s</span>', '');
    
    sub nav
    
    'name'            =>  sprintf( __("Published", "social-articles").'<span>%s</span>', $publishCount),
    ...
    'name'            =>  sprintf( __("Under Review", "social-articles").'<span>%s</span>', $pendingCount),
    ...
    'name'            =>  sprintf( __("Draft", "social-articles").'<span>%s</span>', $draftCount),
    
    

    The quick fix I’m using is to delete
    .'<span class=”sa-global-counter”>%s</span>’, ” in the top nav line and
    .'<span>%s</span>’ in each sub nav line.

    Still, one issue remains, that the counters are not visible. Maybe someone has an idea what could be the reason, as in the legacy theme they are visible. Thanks and I hope this little fix helps you guys.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar