I use wordpress template and everything was working ok till when i try to add a photo for each product but it's not working when i inspect the image the url is wrong..how to change it?
the shown url : https://localhost:81/soraya/81/soraya/wp-content/uploads/2017/07/product-19-268x290.jpg
instead of : https://localhost:81/soraya/wp-content/uploads/2017/07/product-19-268x290.jpg
Thank You!
Related
Here is the url in browser i want to change tu.edu.pk/#kingster-moblie-menu to tu.edu.pk/#tu-moblie-menu
Please Hepl me out how to reslove this issue.
You can try this js on your js file
// Replaces the location of the current window with the new one.
window.location.replace("https://www.tu.edu.pk/#tu-moblie-menu");
When I go to this page from home page. It shows proper font. But when I refresh this page its font gets changed.
Please see the screenshots:
check your browser console there is font error means fonts not found
GET http://www.stitchstudio.co/about/fonts/DINNextLTProBold.woff2
GET http://www.stitchstudio.co/about/fonts/DINNextLTProRegular.woff
GET http://www.stitchstudio.co/about/fonts/DINNextLTProBold.woff
GET http://www.stitchstudio.co/about/fonts/DINNextLTProRegular.ttf
GET http://www.stitchstudio.co/about/fonts/DINNextLTProBold.ttf
GET http://www.stitchstudio.co/wp-content/themes/lens/theme-content/css/fonts/DINNextLTProRegular.woff2
GET http://www.stitchstudio.co/wp-content/themes/lens/theme-content/css/fonts/DINNextLTProRegular.woff
GET http://www.stitchstudio.co/wp-content/themes/lens/theme-content/css/fonts/DINNextLTProRegular.ttf 404 (Not Found)
check path and fix it then it works perfectly
I guess you are not pointing to the theme directory in the right way, you should use get_stylesheet_directory_uri() or similar.
<?php echo get_stylesheet_directory_uri(); ?>/font-folder/font.extension
right now, it's not using it, so from homepage, font gets loaded because it points to:
http://www.stitchstudio.co/fonts/DINNextLTProRegular.woff2
for other pages it is not, and it will use page url, not site url, just like:
http://www.stitchstudio.co/about/fonts/DINNextLTProRegular.woff2
causing the error.
I am trying to add content in a WordPress post type with an acceptance test in Codeception.
I tried several things but I can not make to work.
For example. I would like to add content in a Post or Page or Product. The main content is the iframe with TinyMCE in WordPress.
The best solution I found until now is this but it is not working on WordPress :
$I->switchToIFrame('#content_ifr');
$I->executeJS('document.getElementById("tinymce").innerHTML = "<p>Test content</p>";');
Have you got any idea how to implement this?
If anyone need to add content in the tinymce editor in WordPress with Codeception the solution is this :
$I->click('#content-html');
$I->fillField('#content', 'Test Content');
With the 1st command we change the tinymce tab to html and with the 2nd one we can add the content we like inside.
Hope this helps!
I am trying to add a clients linkedin account. The working path is:
https://www.linkedin.com/pub/'username'
the path jetpack is trying to send me to is.
https://www.linkedin.com/in/'username'
Any suggestions?
Thanks.
I ended up using jQuery to replace the href attribute on the broken linkedin tag. Works now.
just add .. in the url
ie https://www.linkedin.com/in/../pub/username
the .. will take the user up a diectory to get back to the root url, then append /pub/'username', thus the url entered as:
https://www.linkedin.com/in/../pub/username
will be translated into:
https://www.linkedin.com/pub/username
I have Gallery plugin installed.
I've uploaded my images and used snippet like this: [[Gallery? &album=1]].
Now I have thumbnails shown fine, but after clicking on image I'm sent to /index.php?id=4&galItem=2&galAlbum=1&galTag= address and nothing happens - this page is the same as the previous one.
Any ideas on what I am doing wrong?
You get the link to your page with id=4. In this page you have to get galItem, galAlbum and galTag and show corresponding image. I'm not sure you have handling this in your template.
Just try this:
[[Gallery? &album=1 &linkToImage=`1`]]
You will get the direct link to your image if you keep your thumbTpl chunk as in sample:
<a href="[[+linkToImage:if=`[[+linkToImage]]`:is=`1`:then=`[[+image_absolute]]`:else=`[[~[[*id]]?
&[[+imageGetParam]]=`[[+id]]`
&[[+albumRequestVar]]=`[[+album]]`
&[[+tagRequestVar]]=`[[+tag]]` ]]`]]">
Now you just get else part.