![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Hi,
I've got a bit of a problem: I filled in a product description, but it shows up in two places. It shows up in the place it should, so above the products, but it also shows above my website. I don't really know how to explain this correctly, so I think you'll have to take a look for yourself. Do you have any idea how this is possible and how I can fix this? Website URL: http://www.babyaccessoires.eu/ URL to page in question: http://www.babyaccessoires.eu/websho...er-en-kleuter/ Romina |
#2
|
|||
|
|||
![]() That's because you're using html code in your category description.
By default the category description is also used to fill the meta description tag. The html code in your description breaks the format of that tag - hence the text that appears at the top. As a workaround you can change the meta head section for your category pages: 1. Go to The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > View menu > View <head> Elements 2. Remove [category.description] in <meta name="description" content="[category.description]" /> and replace with some generic text. 3. Save and update your store by clicking the Update Settings button in Datafeedr plugin. |
#3
|
|||
|
|||
![]() Ah, I get it. Hence the " /> showing up after the text. I was already wondering about where that came from.
Thanks for the quick reply, fixed it already! |
#4
|
|||
|
|||
![]() As an alternative: if you want to create specific meta tag descriptions per category you can do something like this...
1. Go to The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > View menu > View <head> Elements 2. Replace <meta name="description" content="[category.description]" /> with an if else clause: PHP Code:
4. Save and update your store by clicking the Update Settings button in Datafeedr plugin. |
#5
|
|||
|
|||
![]() Nice! Hadn't thought about that. In my head I was editing the meta tag of just this category, but obviously now it's the meta tag of all categories. Thanks for the tip, 'cause I indeed want to give every category a different description.
It seems Datafeedr starts to work for me just fine! I found a temporary solution for my other problem (see my other post), but I'm still wondering about the 'read more' code. But all the other things seem to work nicely now, after some quick adjustments (both language and style). |
#6
|
|||
|
|||
![]() As a sidenote... when I was looking into the source code of your store pages I noticed that you're using the "Yoast WordPress SEO plugin".
To avoid canonical link issues you should apply the instructions here: http://www.datafeedr.com/forums/showthread.php?t=8262 (second post) |
#7
|
|||
|
|||
![]() Thanks! I didn't notice any problems so far (probably what with being to busy noticing everything else
![]() Thanks for telling me! |
#8
|
|||
|
|||
![]() OK so I have a HUGE problem: when I actually pressed the button to save this... well see for yourself: http://babyaccessoires.eu/
![]() ![]() ![]() Do you know what I should do? Simply deleting the canonical stuff doesn't seem to work, it's still complaining about the 'unexpected <' Apparently, somehow I messed up something else, its just that I don't know I did.. nothing works anymore... I thought I'd just import the latest file I exported, but I can't do anything else than pressing the button, see the error and then go back to functions.php... I hope you can help, everyone sleeps around here at this time... ![]() ![]() ![]() btw I have no idea how to find line 449 other then counting from 1 to 449... Last edited by Estrella86 : August 28th, 2014 at 05:08 PM. |
#9
|
||||
|
||||
![]() Hi,
Can you paste the full contents of this file /wp-content/themes/point/functions.php here so we can see what's going on? Eric
__________________
![]() ![]() ![]() ![]() |
#10
|
|||
|
|||
![]() Hi,
I've put the canonical thing just before the last ?> just so you know. I've deleted it now... here's the code: PHP Code:
|
#11
|
||||
|
||||
![]() Hi,
You are adding the code to the wrong place. It should not be added to your functions.php file. See step #1 here: http://www.datafeedr.com/forums/show...0418#post50418 Eric
__________________
![]() ![]() ![]() ![]() |
#12
|
|||
|
|||
![]() Quote:
|
#13
|
||||
|
||||
![]() You've removed the code from your functions.php file therefore I can't help you figure out what the issue is.
__________________
![]() ![]() ![]() ![]() |
#14
|
|||
|
|||
![]() You know what the weirdest thing is? I have another site, of which I changed the theme into the exact same theme as babyaccessoires.eu (Point). I then copy paste functions.php and now it still gives the same error. If it were actually the 'unexpected <' in functions.php, then this should've been resolved when adding the right code, right?
Weird... Anyway, I understand you can't help me. Thanks for all the other help though |
#15
|
||||
|
||||
![]() That is weird. My guess is that your text editor is adding 'hidden' characters when you are copying and pasting.
__________________
![]() ![]() ![]() ![]() |
#16
|
|||
|
|||
![]() Hmm, could be. I'll try and analyze the whole thing, somehow..
![]() Hidden characters don't really make things easier! |
#17
|
|||
|
|||
![]() Now I can't even get into functions.php anymore. I'll just re-install the whole site tomorrow I think. Not sure anything else will work, seeing as I'm not able to make any changes anymore. I'm guessing that re-installing should work.
Have a nice day/evening! Last edited by Estrella86 : August 28th, 2014 at 06:09 PM. |
#18
|
|||
|
|||
![]() I've installed your theme (https://wordpress.org/themes/point) on a test site of mine and added the code and the site is still functioning fine after uploading the file.
Therefore instead of reinstalling the whole thing can you just download the functions.zip file I attached with this post and upload the functions.php in the zip package in your wp-content/themes/point/ folder and see if that works? |
#19
|
|||
|
|||
![]() Good morning!
Thanks for trying to help me out again! Apparently I don't need it though: what happened kinda gives a whole new meaning to the phrase 'help yourself': when I woke up this morning, everything was alright ![]() Anyway, it's working again, so I can go on trying to fix the 'read more' toggle thing and such. I think I'll just never try and touch functions.php again though. I'm also afraid to add the canonical link bit you, Stefan, pointed out to me, since I have to put that in functions.php. Maybe it wasn't my fault at all and just had something to do with... something else? Seeing as it works fine now without doing anything... or maybe it just needed some 'time to heal' after I copy pasted the new functions.php text... Thanks so much for adding this helpful bit though: hadn't it worked now, it probably would have with your zip file, I think! Edit: right... apparently it's not that weird at all: while I was stressing out yesterday night I texted my brother and apparently he could find the error (he can go into my database and everything) and fixed it. I just texted him all happy like no worries, it works again. And then he texted me back: you think some gnomes did that? (it's an expression in Dutch, don't know whether you can understand it, I think in English it's something like: 'you think it just fell out of the sky?' or 'you think that just came out of nowhere?' I think) Right, I need to go now.. go laugh at myself for thinking it actually came out of nowhere.. Last edited by Estrella86 : August 29th, 2014 at 05:19 AM. |
#20
|
||||
|
||||
![]() Glad you got things worked out! Nice work.
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
part of category description showing above header | harry81 | Questions | 2 | January 16th, 2013 11:08 AM |
Weird PHP listing problem with the category view! | anmihe | Problems | 2 | January 13th, 2012 11:51 AM |
Weird Category problem | macfink | Problems | 1 | May 22nd, 2011 10:43 AM |
Product widget showing full description | bucs0658 | Problems | 2 | May 19th, 2011 11:52 AM |