Site logo

Archived topic

.aside menu in content and GP Social Share

3 replies · Started by Slawomir on November 19, 2019

Viewing posts 1–4 of 4

Hi,

on our webpage (see hidden link) I have built a .aside menu in content (only for desktop) and I use GP Social Share.

I think my solution is wrong.

Due to the [widget id = "nav_menu-7"] at the beginning of the contect, the [gp-social] does not work correctly. The parameter for [gp-social] are wrong and truncated.

How can I integrate the menu correctly (also for SEO)?

I do not think that with the desired layout the sidebar can be used?

Content:
<div style="max-width: 600px; margin: 0 auto;">
<section class="aside aside--post">[widget id="nav_menu-7"]</section>
<p> content text 01 ... </p>
[gp-social]
<p> content text 02 ... </p>
</div>

CSS (excerpt):
/* Aside block */
@media screen and (min-width: 769px) {
    .aside {
        clear: both;
        display: block;
        float: right;
        width: 200px;
        max-width: 100%;
        color: #505050;
        margin: 12px 0 24px 24px;
        border-top: 1px solid #a4286a;
        padding-top: 0px;
        position: relative;
        margin-top: 5px;
    }
}
@media screen and (max-width: 769px) {
  	.aside {
        display: none;
    }
}
.aside--post {
    margin-right: -204px;
}

greeting
Slawek

Hi there,

you would need to ask the Plugin author how to filter out the social sharing content.

Hello David,

I did not get an answer from the plugin author...
In between, I have analized the plugin.
There is no way to sort the icon list or to filter the content.

My manual adjustments:

1. Insert the function: strip_shortcodes ($ excerpt);
(should be standard in the next plugin version)

2. Manually shift the order of icons in: gp-social-settings.php

Now everything works fantastic :-)

Many greetings
Slawek

Glad to hear you found a solution and thanks for sharing.

This archived topic is closed to new replies.