Siman 382
Presented here for study, not as a practical ruling. The Shulchan Aruch rules by Sephardi custom, the Rema's glosses by Ashkenazi custom, and the Kitzur follows Ashkenazi custom. For a practical question, ask your rabbi.
א (אָבֵל) אָסוּר בִּנְעִילַת הַסַנְדָּל, דַּוְקָא שֶׁל עוֹר; אֲבָל בְּאַנְפִּלְיָא שֶׁל בֶּגֶד אוֹ שֶׁל גֻמִּי אוֹ שֶׁל שֵׂעָר אוֹ שֶׁל עֵץ, מֻתָּר, שֶׁאֵין מִנְעָל אֶלָא שֶׁל עוֹר. וְאִם הוּא שֶׁל עֵץ וּמְחֻפֶּה עוֹר, אָסוּר.
1 A mourner is forbidden to put on sandals [or shoes] only if [they are made] of leather, but a pair of shoes made of cloth, reeds, hair or wood, is permissible, for an [ordinary] shoe is [usually made] of leather. However, if it [was made] of wood and covered over by leather, it is forbidden.
ב חַיָּה מֻתֶּרֶת לִנְעֹל כָּל ל' יוֹם, מִפְּנֵי שֶׁהַצִּנָּה קָשָׁה לָהּ.
2 A woman after confinement is permitted to wear [leather-] shoes throughout the thirty days [of mourning] because the cold is harmful to her.
ג כָּל אָדָם מֻתָּר לִנְעֹל בְּמָקוֹם שֶׁיֵּשׁ סַכָּנַת עַקְרָב.
3 Every person [in mourning] is permitted to put on shoes where there is danger of [being attacked by] a scorpion.
ד אָבֵל וּמְנֻדֶּה שֶׁהָיוּ מְהַלְכִים בַּדֶּרֶךְ, מֻתָּרִים בִּנְעִילַת הַסַנְדָּל, וּכְשֶׁיַּגִיעוּ לָעִיר, חוֹלְצִין. וְיֵשׁ מִי שֶׁאוֹמֵר שֶׁאִם הִיא עִיר שֶׁרֻבָּהּ עוֹבְדֵי כּוֹכָבִים, אֵין חוֹלְצִין עַד שֶׁיִּכָּנְסוּ לִרְחוֹב הַיְּהוּדִים.
4 A mourner or an excommunicant who were walking on the road, are permitted to put on shoes, and when they reach the city they remove [them]. There is, however, an authority who states that [in] a city, the majority of which, are Gentiles, one does not remove [his shoes] until he enters the Jewish quarters, [or a Jewish house].
ה אִם צָרִיךְ לַחֲלֹץ מִנְעָל בְּבֵית הַקְבָרוֹת אַחַר שֶׁנִּקְבַּר הַמֵּת, נִתְבָּאֵר בְּסִימָן שע"ה. הַגָּה: יֵשׁ אוֹמְרִים שֶׁצָּרִיךְ לֵילֵךְ יָחֵף מִבֵּית הַקְּבָרוֹת לְבֵיתוֹ אִם מֵת אָבִיו אוֹ אִמּוֹ (כָּל בּוֹ בְּשֵׁם ר"י), וְלֹא רָאִיתִי נוֹהֲגִין כֵּן.
5 Whether one is required to remove [his] shoes on the cemetery after the corpse is interred, has been explained in § 37 Rema: Some say that one is required to go barefooted from the cemetery to his home, if his father or mother died, but I have not seen this custom adopted.