GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Help integrating a script in wordpress (https://gfy.com/showthread.php?t=1342709)

hamiltonsteele 03-09-2021 10:59 AM

Help integrating a script in wordpress
 
Wordpress powers apx. 15% of the top 500 sites.

Yet I'm told that I'm supposed to put a script between the <body></body> tags.
Without downloading and opening up dozens of files this seems like a seriously
monotonous task. Ok, I admit that I suck at coding but I can't believe that
someone would still use an old school approach to incorporating their ad network
in a blog.

Colmike9 03-09-2021 11:01 AM

Quote:

Originally Posted by hamiltonsteele (Post 22830914)
Wordpress powers apx. 15% of the top 500 sites.

Yet I'm told that I'm supposed to put a script between the <body></body> tags.
Without downloading and opening up dozens of files this seems like a seriously
monotonous task.

Easy way is to just use a header/footer plugin and paste it in the footer area.

hamiltonsteele 03-09-2021 11:08 AM

Quote:

Originally Posted by Colmike9 (Post 22830918)
Easy way is to just use a header/footer plugin and paste it in the footer area.

Can you recommend a good one?

Colmike9 03-09-2021 11:10 AM

https://wordpress.org/plugins/insert...s-and-footers/

hamiltonsteele 03-09-2021 11:30 AM

Quote:

Originally Posted by Colmike9 (Post 22830924)

Thanks :thumbsup

zijlstravideo 03-09-2021 01:00 PM

Just include it in your header or footer:

<?php include("path/to/your/newfilewithyouradcode.php"); ?>

sarettah 03-09-2021 01:54 PM

Quote:

Originally Posted by hamiltonsteele (Post 22830914)
I can't believe that
someone would still use an old school approach to incorporating their ad network
in a blog.

How would you insert code into a page without including it somewhere, somehow?

It has to go into the head or the body or the footer. Header or footer insert it one place in one file and it gets included in all pages. Body, insert it into all page templates that you want it included in.

But it has to get into the page somehow. (Unless you are Markham and have magic juice to use).

.

hdbuilder 03-09-2021 03:12 PM

Just find a plugin for that...

RyuLion 03-09-2021 06:28 PM

Quote:

Originally Posted by Colmike9 (Post 22830918)
Easy way is to just use a header/footer plugin and paste it in the footer area.

BOOM! :2 cents: :thumbsup

fuzebox 03-09-2021 06:54 PM

It sounds like you need to take some time and learn how wordpress actually works :2 cents:


All times are GMT -7. The time now is 03:07 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc