Notifications
Clear all

crossposting link after footer

6 Posts
2 Users
0 Reactions
4,326 Views
Posts: 4
Customer
Topic starter
(@martin-okon)
Member
Joined: 1 month ago

The crossposting link to the forum shows after footer, this is no good for me. The footer should be the end you see in the screenshot what I mean how do I get this link to the end of my Blog Article?

crossposting

I would prefer not to do that manuel which of course is possible, but I paid 30 euros for this addon, just not to do it manuel for every post. 
thx


5 Replies
Astghik
Posts: 6513
Admin
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi,

There is no option or shortcode available for this section. You can move it using either CSS or JavaScript code.


Reply
Posts: 4
Customer
Topic starter
(@martin-okon)
Member
Joined: 1 month ago

well thats a bit of waste of money if I have to do it all manually after all.

Its not a bad plugin, but i was hoping not to do this all manual in every article, thats why I bought this. but my footer should be the end of my page and I doubt a lot of people will notice ist down there, 


Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 8 years ago

Illustrious Member
Posts: 6513

@martin-okon 

If you add the CSS or JavaScript code, you don’t need to apply it separately for each article. One solution will be applied to all articles.


Reply
Posts: 4
Customer
Topic starter
(@martin-okon)
Member
Joined: 1 month ago

I´m using elementor, and I tried this with chatgpt but we dont get it, out of this position.
We tried it with Elementor Inividual Code, I tried it with, Snippets and I tried that with WP Snippets, quite frankly I don´t even have an Idea what an Javascript code is or would even know how to write a code like this for example, but no code gpt wrote worked
so in the end I switched of your Plugin. Spending money on a plug in is something I do cause I dont want do work with coding as I don´t have a clue about it. 

"<script>
(function () {
function findCross() {
const guessByClass = document.querySelector(
'.wpf-cross-posting, .wpforo-cross-posting, .wpforo-crosspost, .crossposting'
);
const anchor = Array.from(document.links).find(a =>
(/more discussion|mehr diskussion|wpforo|forum/i.test(a.textContent) ||
/\/community\/|\/forum\//i.test(a.href))
);
const cross = guessByClass || (anchor ? (anchor.closest('div, section, aside, footer, span') || anchor) : null);

const target =
document.querySelector('.elementor-widget-theme-post-content .elementor-widget-container') ||
document.querySelector('article .entry-content') ||
document.querySelector('.entry-content') ||
document.querySelector('article');

if (cross && target && !target.contains(cross)) {
cross.style.visibility = 'hidden';
target.appendChild(cross);
cross.classList.add('crosspost--moved');
cross.style.visibility = 'visible';
return true;
}
return false;
}

if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', findCross, { once: true });
} else {
findCross();
}

const obs = new MutationObserver(() => { if (findCross()) obs.disconnect(); });
obs.observe(document.documentElement, { childList: true, subtree: true });
})();
</script>
"

 


Reply
Posts: 4
Customer
Topic starter
(@martin-okon)
Member
Joined: 1 month ago

okay don´t worry about it, for my webseit this was a waste of money unfortunately. 

I now use it to write the exerpt and start the post in the forum and will link each article manual to article and forum


Reply
Share:
Scroll to top