I am trying to inserting my amazon affiliate link on my wordpress website. But it doesn't work. When I publish the site, I can't see it.
Is it possible to insert the affiliate link into wordpress without using a plugin? I am actually using the free version of wp right now, so I can't install any plugins.
Thanks in advance,
Greetings,
Blacktiger800
As long as you can add in html code to a widget, you should be able to add the link. I've done this many times in both WordPress and Drupal and as long as you enter the link in html it always works.
As long as your theme has a widget area, add a text widget here, and place it where you want your link(s) to appear. If you can get a banner link that would probably give you better click rates, so here's how you can add that:
<img src="www.whereamizonhastheimage.com" alt="Product Name or Description" />
The text inside the "alt" area is there as a backup, in case the image fails to load, so you still at least will have a text link. also helps for people using screen readers who can't see images, making your site more accessible, for minimal effort.
If you just want a text link, you can ignore the img tag and go straight to the name of the product or whatever text you want to appear there between the opening and closing of the a tag like this:
<Your Text Here
The target="_blank" part just tells the browser to open a new window/tab, meaning people won't leave your site when clicking on an affiliate link. I typically do this on all links leaving a website I'm developing.
Related
quite an intimidating place you got here!
Basically I'm pretty new to web design, only really ever building around existing Wordpress templates.
I'm building my own website here: http://www.acjjphotography.com/ and currently when you click on a portfolio thumbnail it opens a description and you have to click 'LEARN MORE' to see the full portfolio. I want to eliminate this middle part.
I usually solve things like this by lots and lots of trial and error, changing bits of files for hours until the right thing happens. But this is usually with CSS, rather than HTML or PHP which I guess this is?
So how would I go about eliminating that middle part where it opens the description? I want it to go straight to the full portfolio when the thumbail is clicked.
Thanks!
It's not the css here, it's in your html page, there's 2 links, one for the middle page and one for the portfolio, you must replace the first link by the "more" link.
for exemple on your website (for JOOMSOLUTION) : the middle page is referring to #portfolio-196, and the "more" link is referring to http://www.acjjphotography.com/index.php/portfolio/joomsolution/"
I want whenever users open my wordpress website a popup window appears that displays Video(from youtube/ vimeo) and user have a option to whether click on play button to watch video on same popup screen or just cross that pop up to visit website, Kindly suggest me some wordpress plugin or any other solution that solves this issue
Also i used plugin "Popup with fancybox" but it didn’t work fine , instead of previewing the video it displays the link of that video (attached the image )http://i.stack.imgur.com/OHyq6.jpg
Kindly Help me, Thanks In advance
It seems as though you are using a shortcode for 'popup with fancybox' which includes another shortcode for the embedded video. So you have a shortcode within a shortcode or something like that.
You might have better luck using a different plugin such as: http://wordpress.org/plugins/wp-video-lightbox/installation/. It seems to do exactly what you want.
I have a Joomla site, the content is loaded in an iframe from another site.
In this iframe I have another iframe (a news ticker), when I click on a link in the news ticker, a page should open in the parent iframe.
When I click on it now, it opens the correct page full screen, and not in the iframe in the joomla site.
(Inception!)
Go check it out:
http://www.rtc-antwerpen.be/Site/content/view/14/47/
Click on 'Hybridevoertuigen' in the scroller
Warning: This site is very old, ugly and slow, I just have to upgrade it.
Thanks
Within the a-tag you have to define target="_parent"
<a href="link.php" target="_parent">
This will cause the link to open in the parent frame.
EDIT:
What you seam to be trying to do, is target a div-block outside the IFrame, which is not possible (at least not with some JS running on your main site).
Are the contents you are linking contents, that exist within joomla? Then try to link to their correct URL.
For example, instead of "detail.php?id=435" link to "/Site/content/view/14/435". Then joomla will load the whole site, wrapping the content.
Except for target="_parent" (which should work if your site is structured like you described) or target="_self" (which should work in your site as it actually is structured now), you could also specify the name of a frame in target. That allows you to more specifically point to a target frame, and it is ignored if such a frame does not exist.
I'm attempting to place some embed code into a Premium WordPress Theme.
NOTE: I'm not great when it comes to php.
The embed code is produced by a video player called EasyVideoPlayer. (Basically it allows me to use Amazon S3 and gives me feedback on when people stop watching the video.)
This is the embed code I have:
<div id="evp-3f0d657d2345b5ea751153sc3a4b2c0e-wrap" class="evp-video-wrap"></div><script type="text/javascript" src="http://www.mysite.co.uk/evp/framework.php?div_id=evp-3f0d657d4255b2ea9817650c3a3b2c0e&id=ZXh0cmEtbW9uZXktZnJvbS1ob21lLTEubW92&v=1275160528"></script><script type="text/javascript">_evpInit('ZXh0cmEtbW9uZXktZnJvbS1ob21lLTEubW92');</script>
I've opened the index.php wordpress file and placed this video embed code in between the that represents the area of the website I want it to show up. However the video is not showing.
If we place both the theme and video player aside, would you expect the php code to accept what I've done or is this not the way to go about adding this embed code?
NOTE:I've contacted both the Wordpress Premium Theme support at Woothemes.com and the video players support for EasyVideoPlayer.com However both tend to stop at the point that another paid product is involved! Grrreat.
website is www.extramoneyfromhome.co.uk
I've created a WordPress plugin for EasyVideoPlayer, which solves this issue. It's also a heck of a lot nicer working with the visual editor instead of hard-coding the video into the template.
Try adding the code all in one block - at present the Script is in the header, rather than below the DIV tag.
This is just an idea to rule out a simple problem.
Regards,
Matt
I've done a lot of small projects on the side lately where the client wants a good chunk of the website to stay the same, they just want to be able to edit particular "areas" of the site. Namely, some text in some box somewhere.
I've found that WordPress works for this pretty well. The interface is nice and friendly to use, and it's got lots of work behind it so I don't have to reinvent wheels, fix bugs, etc.
So what I wind up doing is making PHP pages which look like what the client wants, then making the content editable areas contain a particular post or page, which is what is editable in WordPress.
I'm having the particular page's contents displayed on the page using code like this
<?php echo apply_filters('the_content', $page_Contact->post_content); ?>
where $page_Contact is a variable defined elsewhere.
However, the "Preview" or "View Page"/"View Post" function on each page/post goes to the logical WordPress location and this is not the effect I want in this case.
So for example I have pages like this
www.site.com/index.php
www.site.com/about.php
www.site.com/contact.php
And so forth.
WordPress wants to have the "View Page" and "Preview Changes" links go places like
www.site.com/?page_id=2
www.site.com/?page_id=8&preview=true&preview_id=8&preview_nonce=45522671f5
Which is a problem because, in the permalink structure above, both of those go to the index.php page which, except for the page I'm using to structure index.php, it's not where I want the user/editor to go. And none of the cases above allow any sort of preview (which is a concession I'm willing to make given how I'm doing this)
Is there a way, preferably using a plugin to rig WordPress such that the preview for a page in the dashboard goes to a preview of the non-index.php page where the content will be housed? So for example the link for the "Contact" page in WordPress's dashboard goes to contact.php instead of ?page_id=2? This is a deal where I'm trying to get this done in the editing interface and I'm not concerned about the links in the site itself.
Obviously I would need to maintain this per-page and this would be a situation where new pages don't go up unless I put them there.
Take a look at the preview_post_link hook in WordPress -- it should be called when generating that link, and you can use that in conjunction with a custom field (or some logic) in order to construct whatever preview link you like.
Have you considered page links to plugin for wordpress? Also changing permalinks?